Skip to content

Commit e691edc

Browse files
committed
Revert "Merge pull request TheOdinProject#1 from xandora/jester-tester"
This reverts commit e901090, reversing changes made to 42076e7.
1 parent b2f2211 commit e691edc

File tree

12 files changed

+63
-62
lines changed

12 files changed

+63
-62
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
.vscode
2-
node_modules

fibonacci/fibonacci.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
const fibonacci = function () {};
22

3-
module.exports = fibonacci
3+
module.exports = fibonacci;

findTheOldest/findTheOldest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
let findTheOldest = function () {};
2+
23
module.exports = findTheOldest;

findTheOldest/findTheOldest.spec.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
let findTheOldest = require("./findTheOldest");
1+
let findTheOldest = require('./findTheOldest')
22

3-
describe("findTheOldest", function () {
4-
it("finds the oldest person!", function () {
3+
describe('findTheOldest', function() {
4+
it('finds the oldest person!', function() {
55
const people = [
66
{
77
name: "Carly",
@@ -18,10 +18,10 @@ describe("findTheOldest", function () {
1818
yearOfBirth: 1912,
1919
yearOfDeath: 1941,
2020
},
21-
];
22-
expect(findTheOldest(people).name).toEqual("Ray");
21+
]
22+
expect(findTheOldest(people).name).toEqual('Ray');
2323
});
24-
xit("finds the oldest person if someone is still living", function () {
24+
xit('finds the oldest person if someone is still living', function() {
2525
const people = [
2626
{
2727
name: "Carly",
@@ -37,10 +37,10 @@ describe("findTheOldest", function () {
3737
yearOfBirth: 1912,
3838
yearOfDeath: 1941,
3939
},
40-
];
41-
expect(findTheOldest(people).name).toEqual("Ray");
40+
]
41+
expect(findTheOldest(people).name).toEqual('Ray');
4242
});
43-
xit("finds the oldest person if the OLDEST is still living", function () {
43+
xit('finds the oldest person if the OLDEST is still living', function() {
4444
const people = [
4545
{
4646
name: "Carly",
@@ -56,7 +56,7 @@ describe("findTheOldest", function () {
5656
yearOfBirth: 1912,
5757
yearOfDeath: 1941,
5858
},
59-
];
60-
expect(findTheOldest(people).name).toEqual("Carly");
59+
]
60+
expect(findTheOldest(people).name).toEqual('Carly');
6161
});
6262
});

getTheTitles/getTheTitles.spec.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
let getTheTitles = require("./getTheTitles");
1+
let getTheTitles = require('./getTheTitles')
22

3-
describe("getTheTitles", function () {
4-
const books = [
5-
{
6-
title: "Book",
7-
author: "Name",
8-
},
9-
{
10-
title: "Book2",
11-
author: "Name2",
12-
},
13-
];
3+
describe('getTheTitles', function() {
4+
const books = [
5+
{
6+
title: 'Book',
7+
author: 'Name'
8+
},
9+
{
10+
title: 'Book2',
11+
author: 'Name2'
12+
}
13+
]
1414

15-
it("gets titles", function () {
16-
expect(getTheTitles(books)).toEqual(["Book", "Book2"]);
15+
it('gets titles', function() {
16+
expect(getTheTitles(books)).toEqual(['Book','Book2']);
1717
});
1818
});

leapYears/leapYears.spec.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
const leapYears = require("./leapYears");
22

3-
describe("leapYears", function () {
4-
it("works with non century years", function () {
3+
describe('leapYears', function() {
4+
it('works with non century years', function() {
55
expect(leapYears(1996)).toEqual(true);
66
});
7-
xit("works with non century years", function () {
7+
xit('works with non century years', function() {
88
expect(leapYears(1997)).toEqual(false);
99
});
10-
xit("works with ridiculously futuristic non century years", function () {
10+
xit('works with ridiculously futuristic non century years', function() {
1111
expect(leapYears(34992)).toEqual(true);
1212
});
13-
xit("works with century years", function () {
13+
xit('works with century years', function() {
1414
expect(leapYears(1900)).toEqual(false);
1515
});
16-
xit("works with century years", function () {
16+
xit('works with century years', function() {
1717
expect(leapYears(1600)).toEqual(true);
1818
});
19-
xit("works with century years", function () {
19+
xit('works with century years', function() {
2020
expect(leapYears(700)).toEqual(false);
2121
});
2222
});

palindromes/palindromes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
const palindromes = function () {};
22

3+
34
module.exports = palindromes

palindromes/palindromes.spec.js

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
const palindromes = require("./palindromes");
22

3-
describe("palindromes", function () {
4-
it("works with single words", function () {
5-
expect(palindromes("racecar")).toEqual(true);
3+
describe('palindromes', function() {
4+
it('works with single words', function() {
5+
expect(palindromes('racecar')).toEqual(true);
66
});
7-
xit("works with punctuation ", function () {
8-
expect(palindromes("racecar!")).toEqual(true);
7+
xit('works with punctuation ', function() {
8+
expect(palindromes('racecar!')).toEqual(true);
99
});
10-
xit("works with upper-case letters ", function () {
11-
expect(palindromes("Racecar!")).toEqual(true);
10+
xit('works with upper-case letters ', function() {
11+
expect(palindromes('Racecar!')).toEqual(true);
1212
});
13-
xit("works with multiple words", function () {
14-
expect(palindromes("A car, a man, a maraca.")).toEqual(true);
13+
xit('works with multiple words', function() {
14+
expect(palindromes('A car, a man, a maraca.')).toEqual(true);
1515
});
16-
xit("works with multiple words", function () {
17-
expect(
18-
palindromes("Animal loots foliated detail of stool lamina.")
19-
).toEqual(true);
16+
xit('works with multiple words', function() {
17+
expect(palindromes('Animal loots foliated detail of stool lamina.')).toEqual(true);
2018
});
21-
xit("doesn't just always return true", function () {
22-
expect(palindromes("ZZZZ car, a man, a maraca.")).toEqual(false);
19+
xit('doesn\'t just always return true', function() {
20+
expect(palindromes('ZZZZ car, a man, a maraca.')).toEqual(false);
2321
});
2422
});

pig_latin/pigLatin.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
function translate() {
2-
// body...
2+
// body...
33
}
44

5+
56
module.exports = {
6-
translate,
7-
};
7+
translate
8+
}
9+
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
const removeFromArray = require("./removeFromArray");
22

3-
describe("removeFromArray", function () {
4-
it("removes a single value", function () {
3+
describe('removeFromArray', function() {
4+
it('removes a single value', function() {
55
expect(removeFromArray([1, 2, 3, 4], 3)).toEqual([1, 2, 4]);
66
});
7-
xit("removes multiple values", function () {
7+
xit('removes multiple values', function() {
88
expect(removeFromArray([1, 2, 3, 4], 3, 2)).toEqual([1, 4]);
99
});
10-
xit("ignores non present values", function () {
10+
xit('ignores non present values', function() {
1111
expect(removeFromArray([1, 2, 3, 4], 7, "tacos")).toEqual([1, 2, 3, 4]);
1212
});
13-
xit("ignores non present values, but still works", function () {
13+
xit('ignores non present values, but still works', function() {
1414
expect(removeFromArray([1, 2, 3, 4], 7, 2)).toEqual([1, 3, 4]);
1515
});
16-
xit("can remove all values", function () {
16+
xit('can remove all values', function() {
1717
expect(removeFromArray([1, 2, 3, 4], 1, 2, 3, 4)).toEqual([]);
1818
});
19-
xit("works with strings", function () {
19+
xit('works with strings', function() {
2020
expect(removeFromArray(["hey", 2, 3, "ho"], "hey", 3)).toEqual([2, "ho"]);
2121
});
22-
xit("only removes same type", function () {
22+
xit('only removes same type', function() {
2323
expect(removeFromArray([1, 2, 3], "1", 3)).toEqual([1, 2]);
2424
});
2525
});

snakeCase/snakeCase.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const snakeCase = require("./snakeCase");
1+
const snakeCase = require('./snakeCase')
22

33
describe("snakeCase", function () {
44
it("works with simple lowercased phrases", function () {

sumAll/sumAll.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const sumAll = require("./sumAll");
1+
const sumAll = require('./sumAll')
22

33
describe("sumAll", function () {
44
it("sums numbers within the range", function () {

0 commit comments

Comments
 (0)