Run cleanup

This commit is contained in:
Nito Buendia
2022-03-17 21:09:14 +08:00
parent e470fb56d7
commit c5db939886
2 changed files with 11 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
getJasmineRequireObj().toHaveSpyInteractions = function (j$) {
getJasmineRequireObj().toHaveSpyInteractions = function(j$) {
var getErrorMsg = j$.formatErrorMsg(
'<toHaveSpyInteractions>',
'expect(<spyObj>).toHaveSpyInteractions()'
@@ -14,7 +14,7 @@ getJasmineRequireObj().toHaveSpyInteractions = function (j$) {
*/
function toHaveSpyInteractions(matchersUtil) {
return {
compare: function (actual) {
compare: function(actual) {
var result = {};
if (!j$.isObject_(actual)) {
@@ -53,9 +53,11 @@ getJasmineRequireObj().toHaveSpyInteractions = function (j$) {
resultMessage =
'Expected spy object spies not to have been called, ' +
'but the following spies were called: ';
resultMessage += calledSpies.map(([spyName, spyCount]) => {
resultMessage += calledSpies
.map(([spyName, spyCount]) => {
return `${spyName} called ${spyCount} time(s)`;
}).join(', ');
})
.join(', ');
} else {
resultMessage =
'Expected spy object spies to have been called, ' +