odin-javascript-exercises/getTheTitles/getTheTitles.spec.js
Tatiana b2f2211321 Revert "Resolve merge conflicts"
This reverts commit 61338e0ca0, reversing
changes made to b9983073cc.
2021-05-08 11:27:13 -07:00

18 lines
328 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"]);
});
});