diff --git a/index.js b/index.js index f1ae460..6956d19 100644 --- a/index.js +++ b/index.js @@ -95,7 +95,7 @@ class Executor { } async _verify() { - throw new Error('Not implemented'); + // no-op in case not implemented in extenders } /** diff --git a/test/index.test.js b/test/index.test.js index 32bd12f..9e15575 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -79,14 +79,13 @@ describe('index test', () => { } )); - it('verify returns an error when not overridden', () => + it('verify does not return an error when not overridden', () => instance.verify({}).then( - () => { - throw new Error('Oh no'); + message => { + assert.equal(message, undefined); }, - err => { - assert.isOk(err, 'err is null'); - assert.equal(err.message, 'Not implemented'); + () => { + throw new Error('should not fail'); } ));