odin-javascript-exercises/getTheTitles/getTheTitles.spec.js
Tatiana 18cffeb940 Revert "update cloning link"
This reverts commit 4c771f2e05.
2021-05-08 11:25:04 -07:00

18 lines
323 B
JavaScript

const getTheTitles = require("./getTheTitles");
describe("getTheTitles", function () {
const books = [
{
title: "Book",
author: "Name",
},
{
title: "Book2",
author: "Name2",
},
];
test("gets titles", () => {
expect(getTheTitles(books)).toBe(["Book", "Book2"]);
});
});