mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-19 14:43:22 +09:00
@@ -1,19 +1,18 @@
|
||||
const getTheTitles = require('./getTheTitles')
|
||||
const getTheTitles = require("./getTheTitles");
|
||||
|
||||
describe('getTheTitles', () => {
|
||||
const books = [
|
||||
{
|
||||
title: 'Book',
|
||||
author: 'Name'
|
||||
},
|
||||
{
|
||||
title: 'Book2',
|
||||
author: 'Name2'
|
||||
}
|
||||
]
|
||||
describe("getTheTitles", function () {
|
||||
const books = [
|
||||
{
|
||||
title: "Book",
|
||||
author: "Name",
|
||||
},
|
||||
{
|
||||
title: "Book2",
|
||||
author: "Name2",
|
||||
},
|
||||
];
|
||||
|
||||
test('gets titles', () => {
|
||||
expect(getTheTitles(books)).toBe(['Book','Book2']);
|
||||
test("gets titles", () => {
|
||||
expect(getTheTitles(books)).toBe(["Book", "Book2"]);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user