These are chat archives for CodeHubOrg/discussions
@rinse0ut Getting somewhere now Dave! used your setup.js file to avoid the 'document' not defined error... will probably ask you some more questions on Tue about that ;-) This is my current package.json run command:
"test": "./node_modules/mocha/bin/mocha --require ignore-styles --require src/test/setup.js --compilers js:babel-core/register ./src/**/*.test.js --watch",
I can now run tests and get a response out of mocha. Now its just the 'easy' task of learning the syntax for writing some valid tests! Got it running some basic 'is an array' 'returns x values that match' etc that work.
assert(nextTuesday == 'Test Tuesday', "Next Tuesday is Test Tuesday!")
assert.deepEqual(testTue(), ['learning', 'ah-ha!', 'now I understand!'])