Test Passing Error: Quality Assurance and Testing with Chai - Simulate Actions Using a Headless Browser

Tell us what’s happening:
Describe your issue in detail here.

When submitting the replit solution to the FCC test checker, it always fails the only test ‘all tests should pass’. I have checked multiple forum posts and other solution sites to see if maybe my code is wrong, but it mirrors exactly what others have posted and succeeded with.

When I start the replit, it gives me the follow error:

Tests are not valid:
/home/runner/boilerplate-mochachai/tests/2_functional-tests.js:111
});

SyntaxError: Unexpected end of input
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1033:15)
at Module._compile (node:internal/modules/cjs/loader:1069:27)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at /home/runner/boilerplate-mochachai/node_modules/mocha/lib/mocha.js:430:36
at Array.forEach ()

Is something missing from my code? Or is there an error in the template copied from the lesson?

Your project link(s)

solution: boilerplate-mochachai - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0

Challenge: Quality Assurance and Testing with Chai - Simulate Actions Using a Headless Browser

Link to the challenge:

You need to make sure you properly indent your code and then you will see what the issue is.

HINT: The problem is near the end of the last set of tests.

1 Like

Wild, thank you for catching that!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.