From 88b24ef7df3dab0e0ac37eb0410cb79ff293dbdd Mon Sep 17 00:00:00 2001 From: Arvid Ottenberg Date: Thu, 23 Apr 2020 23:38:04 +0200 Subject: [PATCH] refactor cases for test markOnly --- test/unit/test.spec.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/test/unit/test.spec.js b/test/unit/test.spec.js index ffe8656130..8ad33d5a07 100644 --- a/test/unit/test.spec.js +++ b/test/unit/test.spec.js @@ -105,19 +105,7 @@ describe('Test', function() { test.markOnly(); - expect(spy, 'was called times', 1); - }); - - it('should pass itself as an argument', function() { - var test = new Test('foo'); - var spy = sandbox.spy(); - test.parent = { - appendOnlyTest: spy - }; - - test.markOnly(); - - expect(spy.getCall(0).args[0], 'to be', test); + expect(spy, 'to have a call satisfying', [test]).and('was called once'); }); }); });