Updated the logic to be easier to follow

This commit is contained in:
Steve Walsh
2021-07-13 17:06:37 +01:00
parent 9a435217ec
commit 3596c030c8
2 changed files with 37 additions and 24 deletions

View File

@@ -69,7 +69,6 @@ describe('Unit: PayloadValidator', () => {
const modifiedEvent = orgEvent('before');
modifiedEvent.payload = 'some text';
const result = payloadValidator.verify(modifiedEvent);
console.log(errorLogStub.callCount);
assert(errorLogStub.callCount === 1);
assert(appLogStub.callCount === 1);
const [[log]] = appLogStub.args;