4efb36f3aa
This reverts commit 7a001e0fdb
.
18 lines
340 B
JavaScript
18 lines
340 B
JavaScript
let getTheTitles = require('./getTheTitles')
|
|
|
|
describe('getTheTitles', function() {
|
|
const books = [
|
|
{
|
|
title: 'Book',
|
|
author: 'Name'
|
|
},
|
|
{
|
|
title: 'Book2',
|
|
author: 'Name2'
|
|
}
|
|
]
|
|
|
|
it('gets titles', function() {
|
|
expect(getTheTitles(books)).toEqual(['Book','Book2']);
|
|
});
|
|
});
|