Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for deno 1.30.0 #100

Open
osoken opened this issue Jan 28, 2023 · 0 comments
Open

Add support for deno 1.30.0 #100

osoken opened this issue Jan 28, 2023 · 0 comments

Comments

@osoken
Copy link
Contributor

osoken commented Jan 28, 2023

test fails on current code base running on deno 1.30.x with the following error message:

InstallAction ...
  with URL ...
    download and check that data_files, dim.json and dim-lock.json are saved. ... ok (20ms)
    exit with error when name is not specified ... ok (5ms)
    exit with error when run with "name" not recorded in dim.json ... ok (7ms)
    overwrite existing files when specified name is duplicated and force is true ... ok (7ms)
    download using request headers and check that they are recorded in dim.json and dim-lock.json when specify headers option ... ok (6ms)
    encode downloaded file to Shift-JIS and record in dim.json, dim-lock.json when specify "encode sjis" as postProcesses ... ok (8ms)
    exit with error when specify "encode utf-8 sjis" as postProcesses, and download ... ok (7ms)
    exit with error when specify "encode" as postProcesses, and download. ... ok (6ms)
    check that the command for darwin to extract the downloaded file is entered and recorded in dim.json and dim-lock.json. ... ok (6ms)
    check that the decompress method is called with two arguments when the os is not darwin. ... ok (6ms)
    exit with error when specify "unzip a" as postProcess and download ... ok (4ms)
    convert downloaded file from xlsx to csv and record in dim.json and dim-lock.json when specify "xlsx-to-csv" as postProcesses ... ok (26ms)
    convert downloaded file from xls to csv and record in dim.json and dim-lock.json when specify "xlsx-to-csv" as postProcesses ... ok (16ms)
    exit with error when specify "xlsx-to-csv a" as postProcesses and download ... ok (14ms)
    download file and execute echo command with downloaded file path as standard output when specify "cmd echo" as postProcesses ... ok (7ms)
    download file and execute echo command with "a" and downloaded file path as standard output when specify "cmd echo a" as postProcesses ... ok (6ms)
    exit with error when specify "cmd" as postProcesses and download ... ok (6ms)
    output log and ignore error when specify error command such as "cmd aaa" as postProcesses ... ok (10ms)
    exit with error when specify "aaa" as postProcess and download ... ok (5ms)
    exit with error when if the URL is incorrectly described. ... FAILED (6ms)
      error: AssertionError: spy not called with expected args:
      
      
          [Diff] Actual / Expected
      
      
          [
            "\x1b[31mFailed to install.\x1b[39m",
      -     "\x1b[31mInvalid URL: 'aaa'\x1b[39m",
      +     "\x1b[31mInvalid URL\x1b[39m",
          ]
      
              throw new AssertionError(
                    ^
          at assertSpyCall (https://deno.land/[email protected]/testing/mock.ts:542:15)
          at Object.<anonymous> (file:///home/osoken/Documents/works/projects/cfj/dim/repo/dim/tests/libs/actions.install.test.ts:798:9)
          at async Function.runTest (https://deno.land/[email protected]/testing/_test_suite.ts:358:7)
          at async Function.runTest (https://deno.land/[email protected]/testing/_test_suite.ts:346:9)
          at async Function.runTest (https://deno.land/[email protected]/testing/_test_suite.ts:346:9)
          at async fn (https://deno.land/[email protected]/testing/_test_suite.ts:316:13)
    exit with error when failed to download ... ok (7ms)
    exit with error when execute with URL and file path ... ok (6ms)
  with URL ... FAILED (204ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant