Fix NoWorkResult tests

This commit is contained in:
Andrey Sitnik
2021-11-26 13:58:16 +01:00
parent b07058f27d
commit bb0de6e4e2
+2 -1
View File
@@ -99,7 +99,6 @@ test('executes on finally callback', () => {
let mockCallbackHaveBeenCalled = 0
let mockCallback = (): void => {
mockCallbackHaveBeenCalled++
}
return new NoWorkResult(processor, 'a {}', {})
.finally(mockCallback)
@@ -112,3 +111,5 @@ test('prints its object type', () => {
let result = new NoWorkResult(processor, 'a {}', {})
is(Object.prototype.toString.call(result), '[object NoWorkResult]')
})
test.run()