diff --git a/lib/main.js b/lib/main.js index ddb10d5..415c7a8 100644 --- a/lib/main.js +++ b/lib/main.js @@ -2,19 +2,19 @@ const Sink = class Sink { write() { - throw new Error('Method is not implemented'); + throw new Error('.write method is not implemented'); } read() { - throw new Error('Method is not implemented'); + throw new Error('.read method is not implemented'); } delete() { - throw new Error('Method is not implemented'); + throw new Error('.delete method is not implemented'); } exist() { - throw new Error('Method is not implemented'); + throw new Error('.exist method is not implemented'); } static validateFilePath(filePath) { diff --git a/test/main.js b/test/main.js index 4ac6dfb..5f502a0 100644 --- a/test/main.js +++ b/test/main.js @@ -13,7 +13,7 @@ test('Sink() - Call .write() method', (t) => { const obj = new Sink(); t.throws(() => { obj.write(); - }, /Method is not implemented/, 'Should throw'); + }, /.write method is not implemented/, 'Should throw'); t.end(); }); @@ -21,7 +21,7 @@ test('Sink() - Call .read() method', (t) => { const obj = new Sink(); t.throws(() => { obj.read(); - }, /Method is not implemented/, 'Should throw'); + }, /.read method is not implemented/, 'Should throw'); t.end(); }); @@ -29,7 +29,7 @@ test('Sink() - Call .delete() method', (t) => { const obj = new Sink(); t.throws(() => { obj.delete(); - }, /Method is not implemented/, 'Should throw'); + }, /.delete method is not implemented/, 'Should throw'); t.end(); }); @@ -37,7 +37,7 @@ test('Sink() - Call .exist() method', (t) => { const obj = new Sink(); t.throws(() => { obj.exist(); - }, /Method is not implemented/, 'Should throw'); + }, /.exist method is not implemented/, 'Should throw'); t.end(); });