From 77ab3abf0e0825eb77679bbe74e814c526735a15 Mon Sep 17 00:00:00 2001 From: Anthony Zeitlin Date: Sat, 27 Aug 2016 14:12:30 +0000 Subject: [PATCH] Done. --- .editorconfig | 0 .gitignore | 0 .learn | 0 CONTRIBUTING.md | 0 LICENSE.md | 0 README.md | 0 index.js | 0 package.json | 0 test/index-test.js | 6 ++++++ 9 files changed, 6 insertions(+) mode change 100644 => 100755 .editorconfig mode change 100644 => 100755 .gitignore mode change 100644 => 100755 .learn mode change 100644 => 100755 CONTRIBUTING.md mode change 100644 => 100755 LICENSE.md mode change 100644 => 100755 README.md mode change 100644 => 100755 index.js mode change 100644 => 100755 package.json mode change 100644 => 100755 test/index-test.js 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.js b/index.js old mode 100644 new mode 100755 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 index 38ef5b97..0c7d9079 --- a/test/index-test.js +++ b/test/index-test.js @@ -4,6 +4,7 @@ const jsdom = require('jsdom') const path = require('path') + describe('index', () => { const html = '
' const src = path.resolve(__dirname, '..', 'index.js') @@ -11,6 +12,7 @@ describe('index', () => { it('calls console.error()', done => { const spy = expect.spyOn(console, 'error').andCallThrough() + console.error("Help meh!---") jsdom.env(html, [src], { virtualConsole: jsdom.createVirtualConsole().sendTo(console) }, (err, window) => { @@ -23,6 +25,8 @@ describe('index', () => { it('calls console.log()', done => { const spy = expect.spyOn(console, 'log').andCallThrough() +console.log("this is the second test") + jsdom.env(html, [src], { virtualConsole: jsdom.createVirtualConsole().sendTo(console) }, (err, window) => { @@ -35,6 +39,8 @@ describe('index', () => { it('calls console.warn()', done => { const spy = expect.spyOn(console, 'warn').andCallThrough() + console.warn("Danger Will Robinson!") + jsdom.env(html, [src], { virtualConsole: jsdom.createVirtualConsole().sendTo(console) }, (err, window) => {