Run cleanup
This commit is contained in:
@@ -48,7 +48,8 @@ describe('toHaveSpyInteractions', function() {
|
|||||||
|
|
||||||
let result = matcher.compare(spyObj);
|
let result = matcher.compare(spyObj);
|
||||||
expect(result.pass).toBe(true);
|
expect(result.pass).toBe(true);
|
||||||
expect(result.message).toContain( // Will be shown only on negate.
|
expect(result.message).toContain(
|
||||||
|
// Will be shown only on negate.
|
||||||
'Expected spy object spies not to have been called'
|
'Expected spy object spies not to have been called'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -53,9 +53,11 @@ getJasmineRequireObj().toHaveSpyInteractions = function (j$) {
|
|||||||
resultMessage =
|
resultMessage =
|
||||||
'Expected spy object spies not to have been called, ' +
|
'Expected spy object spies not to have been called, ' +
|
||||||
'but the following spies were called: ';
|
'but the following spies were called: ';
|
||||||
resultMessage += calledSpies.map(([spyName, spyCount]) => {
|
resultMessage += calledSpies
|
||||||
|
.map(([spyName, spyCount]) => {
|
||||||
return `${spyName} called ${spyCount} time(s)`;
|
return `${spyName} called ${spyCount} time(s)`;
|
||||||
}).join(', ');
|
})
|
||||||
|
.join(', ');
|
||||||
} else {
|
} else {
|
||||||
resultMessage =
|
resultMessage =
|
||||||
'Expected spy object spies to have been called, ' +
|
'Expected spy object spies to have been called, ' +
|
||||||
|
|||||||
Reference in New Issue
Block a user