Minor grammatical fixes
This commit is contained in:
parent
d677c68c28
commit
58d2eb108a
|
@ -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!
|
||||
|
|
Loading…
Reference in New Issue