From 0d9f6f21813c751a8afb3dd8c481289955fe768a Mon Sep 17 00:00:00 2001 From: Rychu Date: Sun, 24 Nov 2024 18:12:47 +0100 Subject: [PATCH] Fixed eslint errors --- test/unit/createCipher.spec.ts | 3 ++- test/unit/createDecipher.spec.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/unit/createCipher.spec.ts b/test/unit/createCipher.spec.ts index d068784..a6f34e5 100644 --- a/test/unit/createCipher.spec.ts +++ b/test/unit/createCipher.spec.ts @@ -37,7 +37,8 @@ function encryptAsync(chunkStartPostionInBytes: number, chunkLengthInBytes: numb const chunkCipher = createCipher(key, iv, chunkStartPostionInBytes); const chunkCipherTextBuffer = Buffer.concat([chunkCipher.update(plainTextChunk, `utf8`), chunkCipher.final()]); resolve(chunkCipherTextBuffer); - } catch (error) { + } + catch (error) { reject(error); } }); diff --git a/test/unit/createDecipher.spec.ts b/test/unit/createDecipher.spec.ts index 6a0a3f9..f94661f 100644 --- a/test/unit/createDecipher.spec.ts +++ b/test/unit/createDecipher.spec.ts @@ -40,7 +40,8 @@ function decryptAsync(chunkStartPostionInBytes: number, chunkLengthInBytes: numb const chunkDecipher = createDecipher(key, iv, chunkStartPostionInBytes); const chunkPlainTextBuffer = Buffer.concat([chunkDecipher.update(cipherTextBufferChunk), chunkDecipher.final()]); resolve(chunkPlainTextBuffer); - } catch (error) { + } + catch (error) { reject(error); } });