Skip to content
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
8 changes: 4 additions & 4 deletions tests/ava.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ test('foo will run', t => {
});

test('foo will also run, yet fail', t => {
t.pass("Does that need message?");
t.fail("Does that need message?");
});

test('foo will run but not exclusively', t => {
t.pass("Babumm");
t.fail("Babumm");
});

// Won't run, no title
test('some name', function (t) {
test(function (t) {
t.pass();
});

// Won't run, no explicit title
test('title', function foo(t) {
test(function foo(t) {
t.pass();
});
4 changes: 2 additions & 2 deletions tests/chai.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ var expect = require('chai').expect;
var should = require('chai').should();

it('should return true if valid user id', function(){
expect(true).to.be.true;
expect(true).to.be.false;
});
it('should return false if invalid user id', function(){
expect(42).to.equal(42);
expect(42).to.equal(4);
});
6 changes: 3 additions & 3 deletions tests/qunit-tests.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

QUnit.test( "hello test", function( assert ) {
assert.ok( 3 == "3", "Passed!" );
assert.ok( 7 == "7", "Passed!" );
assert.ok( 7 === "7", "Passed!" );
assert.ok( 9 == "9", "Passed!" );
});


QUnit.test( "bye test", function( assert ) {
assert.ok( 1 == "1", "Passed!" );
assert.ok( 1 === "1", "Passed!" );
assert.ok( 3 == "3", "Passed!" );
assert.ok( 5 == "5", "Passed!" );
assert.ok( 5 === "5", "Passed!" );
});
6 changes: 3 additions & 3 deletions tests/tape.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ test('timing test', function (t) {
t.equal(typeof Date.now, 'function');
var start = Date.now();

t.equal(1, 1);
t.equal(2, 2);
t.equal(1, 4);
t.equal(2, 4);
t.end();

});


test('fail test', (t) => {
t.equal(3,3);
t.equal(2,3);
t.end();
});
22 changes: 11 additions & 11 deletions tests/unit-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ describe('Learning by the example', function(){
from: 'France'
};
})
// .then('test the "example" object', function(){
// test
// .object(example)
// .hasValue('developer')
// .hasProperty('name')
// .hasProperty('from', 'France')
// .contains({message: 'hello world'})
// ;
// })
.then('test the "example" object', function(){
test
.object(example)
.hasValue('developer')
.hasProperty('name')
.hasProperty('from', 'France')
.contains({message: 'hello world'})
;
})
.if(example = 'bad value')
.error(function(){
example.badMethod();
Expand All @@ -37,8 +37,8 @@ describe('Learning by the example', function(){
});
it('other test case', function(){
test.assert(true);
test.assert(true);
test.assert(true);
test.assert(false);
test.assert(false);
test.assert(true);
});
});
Expand Down