Revert "update cloning link"

This reverts commit 4c771f2e05.
This commit is contained in:
Tatiana
2021-05-08 11:25:04 -07:00
parent 60fe6c8b1f
commit 18cffeb940
1791 changed files with 7747 additions and 138307 deletions
+1 -2
View File
@@ -1,4 +1,4 @@
# GET THE TITLES!
# Get the Titles!
You are given an array of objects that represent books with an author and a title that looks like this:
@@ -24,4 +24,3 @@ getTheTitles(books) // ['Book','Book2']
## Hints
- You should use a built-in javascript method to do most of the work for you!
<Paste>
+2 -2
View File
@@ -1,5 +1,5 @@
var getTheTitles = function() {
const getTheTitles = function() {
}
module.exports = getTheTitles
module.exports = getTheTitles;
+14 -15
View File
@@ -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"]);
});
});