mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-11 18:55:59 +09:00
55cfb173d8
Ordered the exercise folders by placing their numbers in their folder name
19 lines
334 B
JavaScript
19 lines
334 B
JavaScript
const getTheTitles = require('./getTheTitles')
|
|
|
|
describe('getTheTitles', () => {
|
|
const books = [
|
|
{
|
|
title: 'Book',
|
|
author: 'Name'
|
|
},
|
|
{
|
|
title: 'Book2',
|
|
author: 'Name2'
|
|
}
|
|
]
|
|
|
|
test('gets titles', () => {
|
|
expect(getTheTitles(books)).toEqual(['Book','Book2']);
|
|
});
|
|
});
|