diff --git a/.editorconfig b/.editorconfig old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.learn b/.learn old mode 100644 new mode 100755 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md old mode 100644 new mode 100755 diff --git a/LICENSE.md b/LICENSE.md old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/index.html b/index.html old mode 100644 new mode 100755 diff --git a/index.js b/index.js old mode 100644 new mode 100755 index e69de29bb2..c64e5865fd --- a/index.js +++ b/index.js @@ -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."; + } +} diff --git a/package.json b/package.json old mode 100644 new mode 100755 diff --git a/test/index-test.js b/test/index-test.js old mode 100644 new mode 100755 diff --git a/test/mocha.opts b/test/mocha.opts old mode 100644 new mode 100755 diff --git a/test/root.js b/test/root.js old mode 100644 new mode 100755 index 2510bc512a..3ffe0bf22a --- a/test/root.js +++ b/test/root.js @@ -9,7 +9,7 @@ before(function(done) { presets: ['es2015'] }); - jsdom.env('
', [], {src: babelResult.code}, (err, window) => { + jsdom.env('', [], {src: babelResult.code, virtualConsole: jsdom.createVirtualConsole().sendTo(console)}, (err, window) => { if (err) { return done(err); }