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) => {