Commit 5f18dfbd authored by Wolfram Kriesing's avatar Wolfram Kriesing

Write an integration test, to drive the implementation of the default dependencies.

Separate slow and fast test execution, so in development the fast tests can be run separately and on the CI all can be run.
parent 83ece07f
......@@ -8,7 +8,9 @@
"type": "git"
},
"scripts": {
"test": "mocha src/*spec.js"
"test": "mocha src/*.{,slow-}spec.js",
"_test:fast": "mocha src/*.spec.js",
"_test:slow": "mocha src/*.slow-spec.js"
},
"author": "Wolfram Kriesing <wolfram+github@kriesing.de>",
"license": "MIT",
......
const { assertThat, equalTo } = require('hamjest');
const { loadStudent } = require('./load-student');
describe('Load a student', () => {
it('from the cache', () => {
const student = loadStudent({ studentId: 42 });
assertThat(student, equalTo(''));
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment