From 633a8c0a0e7dad31253ef7bbfb29bb6a5605a4a0 Mon Sep 17 00:00:00 2001 From: Monica Yamazaki Date: Thu, 9 Apr 2020 12:10:54 -0300 Subject: [PATCH] fixed decode test --- test/cipher.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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', () => {