diff --git a/test/api/child.spec.js b/test/api/child.spec.js index 224033a18..c2525a6c5 100644 --- a/test/api/child.spec.js +++ b/test/api/child.spec.js @@ -125,23 +125,6 @@ describe('#child', function() { childExpect('yaddafoobar', 'to foobar'); }); - it('should prefer a style defined in the child, even if it was added before an identically named one in the parent', function() { - childExpect.addStyle('yadda', function() { - this.text('yaddagood'); - }); - parentExpect.addStyle('yadda', function() { - this.text('yaddabad'); - }); - expect( - childExpect - .createOutput('text') - .yadda() - .toString(), - 'to equal', - 'yaddagood' - ); - }); - it('should allow installing an identically named plugin', function() { parentExpect.use({ name: 'foo', diff --git a/test/assertions/to-satisfy.spec.js b/test/assertions/to-satisfy.spec.js index 458b29d18..b4442b04b 100644 --- a/test/assertions/to-satisfy.spec.js +++ b/test/assertions/to-satisfy.spec.js @@ -77,18 +77,20 @@ describe('to satisfy assertion', function() { ); }); - it('should fail', function() { - expect( - function() { - expect({ foo: {} }, 'to satisfy', { foo: [] }); - }, - 'to throw', - 'expected { foo: {} } to satisfy { foo: [] }\n' + - '\n' + - '{\n' + - ' foo: {} // should satisfy []\n' + - '}' - ); + describe('when the array is nested inside an object', function() { + it('should fail', function() { + expect( + function() { + expect({ foo: {} }, 'to satisfy', { foo: [] }); + }, + 'to throw', + 'expected { foo: {} } to satisfy { foo: [] }\n' + + '\n' + + '{\n' + + ' foo: {} // should satisfy []\n' + + '}' + ); + }); }); }); diff --git a/test/assertions/when-fulfilled.spec.js b/test/assertions/when-fulfilled.spec.js index 4cea6e7ed..7f4e9c7bc 100644 --- a/test/assertions/when-fulfilled.spec.js +++ b/test/assertions/when-fulfilled.spec.js @@ -59,21 +59,6 @@ describe('when fulfilled adverbial assertion', function() { ); }); - it('should fail when the promise is rejected with a value of undefined', function() { - return expect( - expect( - new Promise(function(resolve, reject) { - setTimeout(reject, 0); - }), - 'when fulfilled', - 'to be truthy' - ), - 'to be rejected with', - 'expected Promise when fulfilled to be truthy\n' + - ' Promise unexpectedly rejected' - ); - }); - it('should fail when the next assertion fails', function() { return expect( expect(