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

Done #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .editorconfig
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .learn
100644 → 100755
Empty file.
Empty file modified CONTRIBUTING.md
100644 → 100755
Empty file.
Empty file modified LICENSE.md
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified index.html
100644 → 100755
Empty file.
24 changes: 24 additions & 0 deletions index.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
function shout (string){
return string.toUpperCase();
}

function whisper (string){
return string.toLowerCase();
}

function logShout(string) {
var shouting = string.toUpperCase();
console.log(shouting);
}
function logWhisper (string){
console.log(whisper(string));
}
function sayHiToGrandma (string){
if (string === string.toLowerCase()){
return "I can't hear you!";
} else if (string === string.toUpperCase()){
return "YES INDEED!";
} else if (string === "I love you, Grandma."){
return "I love you, too.";
}
}
Empty file modified package.json
100644 → 100755
Empty file.
Empty file modified test/index-test.js
100644 → 100755
Empty file.
Empty file modified test/mocha.opts
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion test/root.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ before(function(done) {
presets: ['es2015']
});

jsdom.env('<div></div>', [], {src: babelResult.code}, (err, window) => {
jsdom.env('<div></div>', [], {src: babelResult.code, virtualConsole: jsdom.createVirtualConsole().sendTo(console)}, (err, window) => {
if (err) {
return done(err);
}
Expand Down