mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-14 04:06:07 +09:00
added trailing semicolon to all function and module exports
This commit is contained in:
@@ -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,5 +1,5 @@
|
||||
const getTheTitles = function() {
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = getTheTitles;
|
||||
|
||||
@@ -13,7 +13,7 @@ describe('getTheTitles', () => {
|
||||
]
|
||||
|
||||
test('gets titles', () => {
|
||||
expect(getTheTitles(books)).toBe(['Book','Book2']);
|
||||
expect(getTheTitles(books)).toEqual(['Book','Book2']);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user