Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing CI #14

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Empty file modified .circleci/config.yml 100644 → 100755
Empty file.
Empty file modified .gitignore 100644 → 100755
Empty file.
Empty file modified CODE_OF_CONDUCT.md 100644 → 100755
Empty file.
Empty file modified LICENSE 100644 → 100755
Empty file.
Empty file modified README.md 100644 → 100755
Empty file.
Empty file modified clock.js 100644 → 100755
Empty file.
Empty file modified clock.test.js 100644 → 100755
Empty file.
2,191 changes: 2,191 additions & 0 deletions package-lock.json 100644 → 100755

Large diffs are not rendered by default.

Empty file modified package.json 100644 → 100755
Empty file.
8 changes: 7 additions & 1 deletion sketch.js 100644 → 100755
Expand Up @@ -82,6 +82,11 @@ if (miles != null)
return miles * 1.609344;
console.log(miles * 1.609344);
}

function loveMy(myLove) {
return "I don't like my " + myLove + "<3";
}

module.exports = {
sum: sum,
sub: sub,
Expand All @@ -96,5 +101,6 @@ module.exports = {
nOfFibonacci: nOfFibonacci,
shuffleArray: shuffleArray,
iThink: iThink,
milesToKilometers : milesToKilometers
milesToKilometers : milesToKilometers,
loveMy: loveMy
}
6 changes: 5 additions & 1 deletion sketch.test.js 100644 → 100755
@@ -1,4 +1,4 @@
const { sum, sub, prod, digital_root, sum42, milesToKilometers, sayHelloTo, anomalyCode, fahrenheit2Celcius, power, nOfFibonacci, shuffleArray, iThink } = require('./sketch');
const { sum, sub, prod, digital_root, sum42, milesToKilometers, sayHelloTo, anomalyCode, fahrenheit2Celcius, power, nOfFibonacci, shuffleArray, iThink, loveMy } = require('./sketch');

const fs = require("fs");
const path = require("path");
Expand Down Expand Up @@ -178,3 +178,7 @@ test('randomly created and shuffled arrays should be different from the original
// shuffled arrays must have at least one that is different from the original
expect( resultsArray ).not.toBe( masterArray );
});

test('Love function exists', () => {
expect(loveMy("burger")).toBe("I love my burger<3");
})