diff --git a/test/cipher.spec.js b/test/cipher.spec.js index 62b6818..308504d 100644 --- a/test/cipher.spec.js +++ b/test/cipher.spec.js @@ -54,10 +54,10 @@ describe('cipher', () => { }); it('should throw TypeError when invoked with wrong argument types', () => { - expect(() => cipher.encode()).toThrow(TypeError); - expect(() => cipher.encode(0)).toThrow(TypeError); - expect(() => cipher.encode(null, [])).toThrow(TypeError); - expect(() => cipher.encode(0, 0)).toThrow(TypeError); + expect(() => cipher.decode()).toThrow(TypeError); + expect(() => cipher.decode(0)).toThrow(TypeError); + expect(() => cipher.decode(null, [])).toThrow(TypeError); + expect(() => cipher.decode(0, 0)).toThrow(TypeError); }); it('should return "ABCDEFGHIJKLMNOPQRSTUVWXYZ" for "HIJKLMNOPQRSTUVWXYZABCDEFG" with offset 33', () => {