From 70ec725a9d59b1fce1ffc4b2a72ebfb38d7d3fd6 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Thu, 12 Apr 2018 15:53:57 -0700 Subject: [PATCH] convert test/unit/context.spec.js to unexpected Signed-off-by: Christopher Hiller --- test/unit/context.spec.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/test/unit/context.spec.js b/test/unit/context.spec.js index 6703324495..ba101eeba9 100644 --- a/test/unit/context.spec.js +++ b/test/unit/context.spec.js @@ -11,18 +11,18 @@ describe('Context', function () { }); it('should work', function () { - expect(this.calls).to.eql(['before', 'before two']); + expect(this.calls, 'to equal', ['before', 'before two']); this.calls.push('test'); }); after(function () { - expect(this.calls).to.eql(['before', 'before two', 'test']); + expect(this.calls, 'to equal', ['before', 'before two', 'test']); this.calls.push('after two'); }); }); after(function () { - expect(this.calls).to.eql(['before', 'before two', 'test', 'after two']); + expect(this.calls, 'to equal', ['before', 'before two', 'test', 'after two']); }); }); @@ -38,7 +38,7 @@ describe('Context Siblings', function () { }); it('should work', function () { - expect(this.hiddenFromSibling).to.eql('This should be hidden'); + expect(this.hiddenFromSibling, 'to equal', 'This should be hidden'); }); }); @@ -48,46 +48,46 @@ describe('Context Siblings', function () { }); it('should not have value set within a sibling describe', function () { - expect('This should be hidden').not.to.eql(this.hiddenFromSibling); + expect('This should be hidden', 'not to equal', this.hiddenFromSibling); this.visibleFromTestSibling = 'Visible from test sibling'; }); it('should allow test siblings to modify shared context', function () { - expect('Visible from test sibling').to.eql(this.visibleFromTestSibling); + expect('Visible from test sibling', 'to equal', this.visibleFromTestSibling); }); it('should have reset this.calls before describe', function () { - expect(this.calls).to.eql(['before', 'before sibling']); + expect(this.calls, 'to equal', ['before', 'before sibling']); }); }); after(function () { - expect(this.calls).to.eql(['before', 'before sibling']); + expect(this.calls, 'to equal', ['before', 'before sibling']); }); }); describe('methods', function () { describe('timeout()', function () { it('should return the timeout', function () { - expect(this.timeout()).to.equal(200); + expect(this.timeout(), 'to be', 200); }); }); describe('slow()', function () { it('should return the slow', function () { - expect(this.slow()).to.equal(75); + expect(this.slow(), 'to be', 75); }); }); describe('enableTimeouts()', function () { it('should return the enableTimeouts', function () { - expect(this.enableTimeouts()).to.equal(true); + expect(this.enableTimeouts(), 'to be', true); }); }); describe('retries', function () { it('should return the number of retries', function () { - expect(this.retries()).to.equal(-1); + expect(this.retries(), 'to be', -1); }); }); });