Minor grammatical fixes

This commit is contained in:
Michael Frank 2021-05-09 22:08:25 +12:00
parent d677c68c28
commit 58d2eb108a
2 changed files with 19 additions and 19 deletions

View File

@ -30,7 +30,7 @@ const helloWorld = function() {
return ''
}
module.exports = helloWorld
module.exports = helloWorld;
```
In this file we have a simple function called helloWorld that returns an empty string... which is exactly what our test was complaining about. The `module.exports` on the last line is how we export the function so that it can be imported with `require()` in the spec file.
@ -44,7 +44,7 @@ const helloWorld = function() {
return 'Hello, World!'
}
module.exports = helloWorld
module.exports = helloWorld;
```
For the most part we've set up these tests in such a way that you only have to write the code being tested. You should not have to worry about importing or exporting anything at this stage.. so just work around that bit of the code and write what it takes to make them pass!
For the most part we've set up these tests in such a way that you only have to write the code being tested. You should not have to worry about importing or exporting anything at this stage, so just work around that bit of the code and write what it takes to make them pass!