Revert "Merge pull request #1 from xandora/jester-tester"
This reverts commite901090896
, reversing changes made to42076e7424
.
This commit is contained in:
parent
b2f2211321
commit
e691edc97c
12 changed files with 63 additions and 62 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1 @@
|
|||
.vscode
|
||||
node_modules
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
const fibonacci = function () {};
|
||||
|
||||
module.exports = fibonacci
|
||||
module.exports = fibonacci;
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
let findTheOldest = function () {};
|
||||
|
||||
module.exports = findTheOldest;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
let findTheOldest = require("./findTheOldest");
|
||||
let findTheOldest = require('./findTheOldest')
|
||||
|
||||
describe("findTheOldest", function () {
|
||||
it("finds the oldest person!", function () {
|
||||
describe('findTheOldest', function() {
|
||||
it('finds the oldest person!', function() {
|
||||
const people = [
|
||||
{
|
||||
name: "Carly",
|
||||
|
@ -18,10 +18,10 @@ describe("findTheOldest", function () {
|
|||
yearOfBirth: 1912,
|
||||
yearOfDeath: 1941,
|
||||
},
|
||||
];
|
||||
expect(findTheOldest(people).name).toEqual("Ray");
|
||||
]
|
||||
expect(findTheOldest(people).name).toEqual('Ray');
|
||||
});
|
||||
xit("finds the oldest person if someone is still living", function () {
|
||||
xit('finds the oldest person if someone is still living', function() {
|
||||
const people = [
|
||||
{
|
||||
name: "Carly",
|
||||
|
@ -37,10 +37,10 @@ describe("findTheOldest", function () {
|
|||
yearOfBirth: 1912,
|
||||
yearOfDeath: 1941,
|
||||
},
|
||||
];
|
||||
expect(findTheOldest(people).name).toEqual("Ray");
|
||||
]
|
||||
expect(findTheOldest(people).name).toEqual('Ray');
|
||||
});
|
||||
xit("finds the oldest person if the OLDEST is still living", function () {
|
||||
xit('finds the oldest person if the OLDEST is still living', function() {
|
||||
const people = [
|
||||
{
|
||||
name: "Carly",
|
||||
|
@ -56,7 +56,7 @@ describe("findTheOldest", function () {
|
|||
yearOfBirth: 1912,
|
||||
yearOfDeath: 1941,
|
||||
},
|
||||
];
|
||||
expect(findTheOldest(people).name).toEqual("Carly");
|
||||
]
|
||||
expect(findTheOldest(people).name).toEqual('Carly');
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
let getTheTitles = require("./getTheTitles");
|
||||
let getTheTitles = require('./getTheTitles')
|
||||
|
||||
describe("getTheTitles", function () {
|
||||
const books = [
|
||||
{
|
||||
title: "Book",
|
||||
author: "Name",
|
||||
},
|
||||
{
|
||||
title: "Book2",
|
||||
author: "Name2",
|
||||
},
|
||||
];
|
||||
describe('getTheTitles', function() {
|
||||
const books = [
|
||||
{
|
||||
title: 'Book',
|
||||
author: 'Name'
|
||||
},
|
||||
{
|
||||
title: 'Book2',
|
||||
author: 'Name2'
|
||||
}
|
||||
]
|
||||
|
||||
it("gets titles", function () {
|
||||
expect(getTheTitles(books)).toEqual(["Book", "Book2"]);
|
||||
it('gets titles', function() {
|
||||
expect(getTheTitles(books)).toEqual(['Book','Book2']);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
const leapYears = require("./leapYears");
|
||||
|
||||
describe("leapYears", function () {
|
||||
it("works with non century years", function () {
|
||||
describe('leapYears', function() {
|
||||
it('works with non century years', function() {
|
||||
expect(leapYears(1996)).toEqual(true);
|
||||
});
|
||||
xit("works with non century years", function () {
|
||||
xit('works with non century years', function() {
|
||||
expect(leapYears(1997)).toEqual(false);
|
||||
});
|
||||
xit("works with ridiculously futuristic non century years", function () {
|
||||
xit('works with ridiculously futuristic non century years', function() {
|
||||
expect(leapYears(34992)).toEqual(true);
|
||||
});
|
||||
xit("works with century years", function () {
|
||||
xit('works with century years', function() {
|
||||
expect(leapYears(1900)).toEqual(false);
|
||||
});
|
||||
xit("works with century years", function () {
|
||||
xit('works with century years', function() {
|
||||
expect(leapYears(1600)).toEqual(true);
|
||||
});
|
||||
xit("works with century years", function () {
|
||||
xit('works with century years', function() {
|
||||
expect(leapYears(700)).toEqual(false);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
const palindromes = function () {};
|
||||
|
||||
|
||||
module.exports = palindromes
|
||||
|
|
|
@ -1,24 +1,22 @@
|
|||
const palindromes = require("./palindromes");
|
||||
|
||||
describe("palindromes", function () {
|
||||
it("works with single words", function () {
|
||||
expect(palindromes("racecar")).toEqual(true);
|
||||
describe('palindromes', function() {
|
||||
it('works with single words', function() {
|
||||
expect(palindromes('racecar')).toEqual(true);
|
||||
});
|
||||
xit("works with punctuation ", function () {
|
||||
expect(palindromes("racecar!")).toEqual(true);
|
||||
xit('works with punctuation ', function() {
|
||||
expect(palindromes('racecar!')).toEqual(true);
|
||||
});
|
||||
xit("works with upper-case letters ", function () {
|
||||
expect(palindromes("Racecar!")).toEqual(true);
|
||||
xit('works with upper-case letters ', function() {
|
||||
expect(palindromes('Racecar!')).toEqual(true);
|
||||
});
|
||||
xit("works with multiple words", function () {
|
||||
expect(palindromes("A car, a man, a maraca.")).toEqual(true);
|
||||
xit('works with multiple words', function() {
|
||||
expect(palindromes('A car, a man, a maraca.')).toEqual(true);
|
||||
});
|
||||
xit("works with multiple words", function () {
|
||||
expect(
|
||||
palindromes("Animal loots foliated detail of stool lamina.")
|
||||
).toEqual(true);
|
||||
xit('works with multiple words', function() {
|
||||
expect(palindromes('Animal loots foliated detail of stool lamina.')).toEqual(true);
|
||||
});
|
||||
xit("doesn't just always return true", function () {
|
||||
expect(palindromes("ZZZZ car, a man, a maraca.")).toEqual(false);
|
||||
xit('doesn\'t just always return true', function() {
|
||||
expect(palindromes('ZZZZ car, a man, a maraca.')).toEqual(false);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
function translate() {
|
||||
// body...
|
||||
// body...
|
||||
}
|
||||
|
||||
|
||||
module.exports = {
|
||||
translate,
|
||||
};
|
||||
translate
|
||||
}
|
||||
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
const removeFromArray = require("./removeFromArray");
|
||||
|
||||
describe("removeFromArray", function () {
|
||||
it("removes a single value", function () {
|
||||
describe('removeFromArray', function() {
|
||||
it('removes a single value', function() {
|
||||
expect(removeFromArray([1, 2, 3, 4], 3)).toEqual([1, 2, 4]);
|
||||
});
|
||||
xit("removes multiple values", function () {
|
||||
xit('removes multiple values', function() {
|
||||
expect(removeFromArray([1, 2, 3, 4], 3, 2)).toEqual([1, 4]);
|
||||
});
|
||||
xit("ignores non present values", function () {
|
||||
xit('ignores non present values', function() {
|
||||
expect(removeFromArray([1, 2, 3, 4], 7, "tacos")).toEqual([1, 2, 3, 4]);
|
||||
});
|
||||
xit("ignores non present values, but still works", function () {
|
||||
xit('ignores non present values, but still works', function() {
|
||||
expect(removeFromArray([1, 2, 3, 4], 7, 2)).toEqual([1, 3, 4]);
|
||||
});
|
||||
xit("can remove all values", function () {
|
||||
xit('can remove all values', function() {
|
||||
expect(removeFromArray([1, 2, 3, 4], 1, 2, 3, 4)).toEqual([]);
|
||||
});
|
||||
xit("works with strings", function () {
|
||||
xit('works with strings', function() {
|
||||
expect(removeFromArray(["hey", 2, 3, "ho"], "hey", 3)).toEqual([2, "ho"]);
|
||||
});
|
||||
xit("only removes same type", function () {
|
||||
xit('only removes same type', function() {
|
||||
expect(removeFromArray([1, 2, 3], "1", 3)).toEqual([1, 2]);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const snakeCase = require("./snakeCase");
|
||||
const snakeCase = require('./snakeCase')
|
||||
|
||||
describe("snakeCase", function () {
|
||||
it("works with simple lowercased phrases", function () {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const sumAll = require("./sumAll");
|
||||
const sumAll = require('./sumAll')
|
||||
|
||||
describe("sumAll", function () {
|
||||
it("sums numbers within the range", function () {
|
||||
|
|
Loading…
Reference in a new issue