From d043481e102c63a81ea18834d514556ff4e6dad1 Mon Sep 17 00:00:00 2001 From: Klemens David Morgenstern Date: Thu, 21 Mar 2019 17:23:17 +0800 Subject: [PATCH 1/3] introced syntax errors and stuff --- tests/ava.js | 2 +- tests/chai.js | 2 +- tests/tape.js | 2 +- tests/unit-js.js | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/ava.js b/tests/ava.js index b90899e..9122790 100644 --- a/tests/ava.js +++ b/tests/ava.js @@ -5,7 +5,7 @@ test('foo will run', t => { }); test('foo will also run, yet fail', t => { - t.pass("Does that need message?"); + t.passasd("Does that need message?"); }); test('foo will run but not exclusively', t => { diff --git a/tests/chai.js b/tests/chai.js index 77f0679..8adb8da 100644 --- a/tests/chai.js +++ b/tests/chai.js @@ -2,7 +2,7 @@ var assert = require('assert'); var expect = require('chai').expect; var should = require('chai').should(); -it('should return true if valid user id', function(){ +it_does_not-exist('should return true if valid user id', function(){ expect(true).to.be.true; }); it('should return false if invalid user id', function(){ diff --git a/tests/tape.js b/tests/tape.js index 7ca741b..c88cccd 100644 --- a/tests/tape.js +++ b/tests/tape.js @@ -7,7 +7,7 @@ test('timing test', function (t) { t.equal(1, 1); t.equal(2, 2); - t.end(); + t.2end(); }); diff --git a/tests/unit-js.js b/tests/unit-js.js index 27751d8..1319455 100644 --- a/tests/unit-js.js +++ b/tests/unit-js.js @@ -1,5 +1,7 @@ var test = require('unit.js'); +syntax error + describe('Learning by the example', function(){ it('example variable', function(){ // just for example of tested value From 4fdddcf562fe9ebeb4cdc5c08b1d13a0b1ffdb92 Mon Sep 17 00:00:00 2001 From: Klemens David Morgenstern Date: Thu, 21 Mar 2019 17:31:55 +0800 Subject: [PATCH 2/3] turned all into syntax errors --- tests/ava.js | 4 +++- tests/chai.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/ava.js b/tests/ava.js index 9122790..b00e960 100644 --- a/tests/ava.js +++ b/tests/ava.js @@ -1,11 +1,13 @@ import test from 'ava'; +syntax error + test('foo will run', t => { t.pass(); }); test('foo will also run, yet fail', t => { - t.passasd("Does that need message?"); + t.pass("Does that need message?"); }); test('foo will run but not exclusively', t => { diff --git a/tests/chai.js b/tests/chai.js index 8adb8da..d1af198 100644 --- a/tests/chai.js +++ b/tests/chai.js @@ -2,7 +2,9 @@ var assert = require('assert'); var expect = require('chai').expect; var should = require('chai').should(); -it_does_not-exist('should return true if valid user id', function(){ +syntax error + +it('should return true if valid user id', function(){ expect(true).to.be.true; }); it('should return false if invalid user id', function(){ From 7191d90e3c28750ababce518c008b5e6dba5af7a Mon Sep 17 00:00:00 2001 From: Klemens David Morgenstern Date: Tue, 26 Mar 2019 22:03:49 +0800 Subject: [PATCH 3/3] removed syntax error from ava --- tests/ava.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/ava.js b/tests/ava.js index b00e960..b90899e 100644 --- a/tests/ava.js +++ b/tests/ava.js @@ -1,7 +1,5 @@ import test from 'ava'; -syntax error - test('foo will run', t => { t.pass(); });