Skip to content

Commit

Permalink
Remove color from expected results (docker only)
Browse files Browse the repository at this point in the history
  • Loading branch information
SleeplessByte committed Oct 18, 2024
1 parent 10b8c1e commit 7364356
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions bin/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ for test_file in $(find "${tmp_fixtures_dir}" -name '*.spec.js'); do
fi;

if [ $? -ne 0 ]; then
echo "diff \"${results_file_path}\" \"${expected_results_file_path}\" reported $?"
exit_code=1
fi
done
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"status": "error",
"message": "SyntaxError: <solution>/two-fer.spec.js: Unexpected token (2:0)\n\n \u001b[0m \u001b[90m 1 |\u001b[39m describe(\u001b[32m'twoFer()'\u001b[39m\u001b[33m,\u001b[39m t(\u001b[32m'another name given'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[0m\n \u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 2 |\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\u001b[0m\n",
"message": "SyntaxError: <solution>/two-fer.spec.js: Unexpected token (2:0)\n\n 1 | describe('twoFer()', t('another name given', () => {\n > 2 |\n | ^\n",
"tests": [],
"version": 3
}
2 changes: 1 addition & 1 deletion test/fixtures/two-fer/error/syntax/expected_results.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"status": "error",
"message": "SyntaxError: <solution>/two-fer.js: Unexpected keyword 'const'. (1:13)\n\n \u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 1 |\u001b[39m \u001b[36mexport\u001b[39m \u001b[36mconst\u001b[39m \u001b[36mconst\u001b[39m () \u001b[33m=>\u001b[39m { (\u001b[0m\n \u001b[0m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 2 |\u001b[39m\u001b[0m\n",
"message": "SyntaxError: <solution>/two-fer.js: Unexpected keyword 'const'. (1:13)\n\n > 1 | export const const () => { (\n | ^\n 2 |\n",
"tests": [],
"version": 3
}

0 comments on commit 7364356

Please sign in to comment.