Commit a3dba52c by Wolfram Kriesing

Rename the file and add the first test.

parent 7ea3acd8
......@@ -7,3 +7,11 @@ export const loadStudent = ({ studentId }) => {
}
return cache[studentId];
};
describe('Load a student', () => {
it('from the cache', () => {
cache[42] = 'student 42';
const student = loadStudent({ studentId: 42 });
assertThat(student, equalTo('student 42'));
});
});
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