odin-javascript-exercises/getTheTitles/getTheTitles.spec.js
2019-04-11 11:37:33 -05:00

19 lines
341 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']);
});
});