Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Wolfram Kriesing
article-discover-extract-dependencies
Commits
a3dba52c
Commit
a3dba52c
authored
Mar 18, 2017
by
Wolfram Kriesing
Browse files
Rename the file and add the first test.
parent
7ea3acd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/load-student.spec.js
src/load-student.spec.js
+8
-0
No files found.
src/load-student.js
→
src/load-student.
spec.
js
View file @
a3dba52c
...
...
@@ -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
'
));
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment