2021-03-03 02:25:29 +00:00
|
|
|
const expect = require('expect');let getTheTitles = require('./getTheTitles')
|
2019-04-11 16:37:33 +00:00
|
|
|
|
|
|
|
describe('getTheTitles', function() {
|
|
|
|
const books = [
|
|
|
|
{
|
|
|
|
title: 'Book',
|
|
|
|
author: 'Name'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Book2',
|
|
|
|
author: 'Name2'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
it('gets titles', function() {
|
|
|
|
expect(getTheTitles(books)).toEqual(['Book','Book2']);
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|