Skip to content

Commit

Permalink
refactor cases for test markOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidOtt committed Apr 23, 2020
1 parent 79b8270 commit 88b24ef
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions test/unit/test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
});

0 comments on commit 88b24ef

Please sign in to comment.