Hello, thanks for the great post, but I have a question. On the index.spec.js file you imported the server file i.e const server = require('../index');
but it appears 'server' wasn't used anywhere. Why did you import it please and can it be omitted since it's not used. Thanks
She didn't use server variable because she was just writing a demo test case, comparing two identical strings (which would definitely always pass)
expect('ci with travis').to.equal('ci with travis')
In the real world she'd rather be doing something in the lines of inspecting that server variable to see if server was actually successfully created at specified port.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello, thanks for the great post, but I have a question. On the index.spec.js file you imported the server file i.e
const server = require('../index');
but it appears 'server' wasn't used anywhere. Why did you import it please and can it be omitted since it's not used. Thanks
She didn't use server variable because she was just writing a demo test case, comparing two identical strings (which would definitely always pass)
expect('ci with travis').to.equal('ci with travis')
In the real world she'd rather be doing something in the lines of inspecting that server variable to see if server was actually successfully created at specified port.