Skip to content

Clean up output formatting and support colorizing FQL results #503

Clean up output formatting and support colorizing FQL results

Clean up output formatting and support colorizing FQL results #503

GitHub Actions / JUnit Test Report failed Dec 9, 2024 in 0s

162 tests run, 157 passed, 0 skipped, 5 failed.

Annotations

Check failure on line 1 in test/credentials.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/credentials.mjs.credentials credentials middleware class setup builds credentials from: 'query "Database.all()" -d us-std/test:badpath --no-color'

The query failed unexpectedly with the following error:

Unable to format FQL unless it is already a string.
Raw output
Error: The query failed unexpectedly with the following error:

Unable to format FQL unless it is already a string.
    at Object.queryCommand [as handler] (file:///home/runner/work/fauna-shell/fauna-shell/src/commands/query.mjs:117:11)

Check failure on line 116 in test/login.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/login.mjs.login can login

expected stdout to have been called with arguments 'To login, open your browser to:\n http://dashboard-url.com'
'"To login, open your browser to:\\nhttp://dashboard-url.com"' '"To login, open your browser to:\\n http://dashboard-url.com"'
Raw output
AssertionError: expected stdout to have been called with arguments 'To login, open your browser to:\n http://dashboard-url.com'
'"To login, open your browser to:\\nhttp://dashboard-url.com"' '"To login, open your browser to:\\n http://dashboard-url.com"' 
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/login.mjs:116:40)

Check failure on line 153 in test/login.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/login.mjs.login overwrites credentials on login

expected stdout to have been called with arguments 'Login Success!\n'
'"To login, open your browser to:\\nhttp://dashboard-url.com"' '"Login Success!\\n"'
Raw output
AssertionError: expected stdout to have been called with arguments 'Login Success!\n'
'"To login, open your browser to:\\nhttp://dashboard-url.com"' '"Login Success!\\n"' 
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/login.mjs:153:40)

Check failure on line 133 in test/shell.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/shell.mjs.shell common history can be navigated through

expected '\u001b[1G\u001b[0J> 2\u001b[4G\n\u001…' to equal '\u001b[1G\u001b[0J> 2\u001b[4G'
Raw output
AssertionError: expected '\u001b[1G\u001b[0J> 2\u001b[4G\n\u001…' to equal '\u001b[1G\u001b[0J> 2\u001b[4G'
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/shell.mjs:133:40)

      + expected - actual

      -[1G[0J> 2[4G
      -[1G[0J> 2[3G
      -[1G[0J> 2[3G
      -[1G[0J> 2[3G
      +[1G[0J> 2[4G

Check failure on line 180 in test/shell.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/shell.mjs.shell common history can be cleared

expected '.clearhistory\r\nHistory cleared\n\u0…' to equal '.clearhistory\r\nHistory cleared\n\u0…'
Raw output
AssertionError: expected '.clearhistory\r\nHistory cleared\n\u0…' to equal '.clearhistory\r\nHistory cleared\n\u0…'
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/shell.mjs:180:40)

      + expected - actual

       .clearhistory
       History cleared
      -[1G[0J> [3G
      -[1G[0J> [3G
      -[1G[0J> [3G
       [1G[0J> [3G