Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
convert test/interfaces/tdd.spec.js to unexpected
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
  • Loading branch information
boneskull committed Apr 21, 2018
1 parent c6622a6 commit 5c0a8d0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/interfaces/tdd.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,37 @@ suite('integer primitives', function () {
var initialValue = 41;

suiteSetup(function (done) {
expect(initialValue).to.eql(41);
expect(initialValue, 'to be', 41);
initialValue += 1;
done();
});

test('should add', function () {
expect(initialValue).to.eql(42);
expect(1 + 1).to.equal(2);
expect(2 + 2).to.equal(4);
expect(initialValue, 'to be', 42);
expect(1 + 1, 'to be', 2);
expect(2 + 2, 'to be', 4);
});

test('should subtract', function () {
expect(initialValue).to.eql(42);
expect(1 - 1).to.equal(0);
expect(2 - 1).to.equal(1);
expect(initialValue, 'to be', 42);
expect(1 - 1, 'to be', 0);
expect(2 - 1, 'to be', 1);
});

test.skip('should skip this test', function () {
var zero = 0;
expect(zero).to.equal(1, 'this test should have been skipped');
expect(zero, 'to be', 1);
});

suite.skip('should skip this suite', function () {
test('should skip this test', function () {
var zero = 0;
expect(zero).to.equal(1, 'this test should have been skipped');
expect(zero, 'to be', 1);
});
});

suiteTeardown(function (done) {
expect(initialValue).to.eql(42);
expect(initialValue, 'to be', 42);
done();
});
});
Expand Down

0 comments on commit 5c0a8d0

Please sign in to comment.