mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-16 13:13:19 +09:00
b2f2211321
This reverts commit61338e0ca0, reversing changes made tob9983073cc.
19 lines
328 B
JavaScript
19 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"]);
|
|
});
|
|
});
|