added trailing semicolon to all function and module exports

This commit is contained in:
Michael Frank
2021-05-10 21:27:55 +12:00
parent 58d2eb108a
commit 2f63b3e380
30 changed files with 1770 additions and 7014 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ const books = [
]
```
your job is to write a function that takes the array and returns an array of titles:
Your job is to write a function that takes the array and returns an array of titles:
```javascript
getTheTitles(books) // ['Book','Book2']
+1 -1
View File
@@ -1,5 +1,5 @@
const getTheTitles = function() {
}
};
module.exports = getTheTitles;
+1 -1
View File
@@ -13,7 +13,7 @@ describe('getTheTitles', () => {
]
test('gets titles', () => {
expect(getTheTitles(books)).toBe(['Book','Book2']);
expect(getTheTitles(books)).toEqual(['Book','Book2']);
});
});