Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crypto/crypto/test/aes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ describe("AES", () => {
data = toEncrypt.msg;
});

it("should encrypt sucessfully", async () => {
it("should encrypt successfully", async () => {
const ciphertext = await testAesEncrypt(iv, key, data);
chai.expect(ciphertext).to.not.be.undefined;
});

it("should decrypt sucessfully", async () => {
it("should decrypt successfully", async () => {
const ciphertext = await testAesEncrypt(iv, key, data);
const result = await testAesDecrypt(iv, key, ciphertext);
chai.expect(result).to.not.be.undefined;
Expand Down
6 changes: 3 additions & 3 deletions crypto/crypto/test/browser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe("Browser", () => {
expectedLength = 32;
expectedOutput = hexToArray(TEST_SHA256_HASH);
});
it("should hash buffer sucessfully", async () => {
it("should hash buffer successfully", async () => {
const input = utf8ToArray(TEST_MESSAGE_STR);
const output = await browserCrypto.browserSha256(input);
chai.expect(output).to.eql(expectedOutput);
Expand All @@ -119,7 +119,7 @@ describe("Browser", () => {
expectedOutput = hexToArray(TEST_SHA512_HASH);
});

it("should hash buffer sucessfully", async () => {
it("should hash buffer successfully", async () => {
const input = utf8ToArray(TEST_MESSAGE_STR);
const output = await browserCrypto.browserSha512(input);
chai.expect(output).to.eql(expectedOutput);
Expand Down Expand Up @@ -148,7 +148,7 @@ describe("Browser", () => {
output = await browserCrypto.browserHmacSha256Sign(macKey, dataToMac);
});

it("should sign sucessfully", async () => {
it("should sign successfully", async () => {
chai.expect(output).to.eql(expectedOutput);
});

Expand Down
6 changes: 3 additions & 3 deletions crypto/crypto/test/fallback.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe("Fallback", () => {
expectedLength = 32;
expectedOutput = hexToArray(TEST_SHA256_HASH);
});
it("should hash buffer sucessfully", async () => {
it("should hash buffer successfully", async () => {
const input = utf8ToArray(TEST_MESSAGE_STR);
const output = fallbackCrypto.fallbackSha256(input);
chai.expect(output).to.eql(expectedOutput);
Expand All @@ -105,7 +105,7 @@ describe("Fallback", () => {
expectedOutput = hexToArray(TEST_SHA512_HASH);
});

it("should hash buffer sucessfully", async () => {
it("should hash buffer successfully", async () => {
const input = utf8ToArray(TEST_MESSAGE_STR);
const output = fallbackCrypto.fallbackSha512(input);
chai.expect(output).to.eql(expectedOutput);
Expand Down Expand Up @@ -134,7 +134,7 @@ describe("Fallback", () => {
output = fallbackCrypto.fallbackHmacSha256Sign(macKey, dataToMac);
});

it("should sign sucessfully", async () => {
it("should sign successfully", async () => {
chai.expect(output).to.eql(expectedOutput);
});

Expand Down
4 changes: 2 additions & 2 deletions crypto/crypto/test/hmac.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ describe("HMAC", () => {
output = await testHmacSign(macKey, dataToMac);
});

it("should sign sucessfully", async () => {
it("should sign successfully", async () => {
chai.expect(output).to.eql(expectedOutput);
});

it("should output with expected length", async () => {
chai.expect(output.length).to.eql(expectedLength);
});

it("should verify sucessfully", async () => {
it("should verify successfully", async () => {
const macGood = await testHmacVerify(macKey, dataToMac, output);
chai.expect(macGood).to.not.be.undefined;
});
Expand Down
6 changes: 3 additions & 3 deletions crypto/crypto/test/node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ describe("NodeJS", () => {
expectedLength = 32;
expectedOutput = hexToArray(TEST_SHA256_HASH);
});
it("should hash buffer sucessfully", async () => {
it("should hash buffer successfully", async () => {
const input = utf8ToArray(TEST_MESSAGE_STR);
const output = nodeCrypto.nodeSha256(input);
chai.expect(output).to.eql(expectedOutput);
Expand All @@ -114,7 +114,7 @@ describe("NodeJS", () => {
expectedOutput = hexToArray(TEST_SHA512_HASH);
});

it("should hash buffer sucessfully", async () => {
it("should hash buffer successfully", async () => {
const input = utf8ToArray(TEST_MESSAGE_STR);
const output = nodeCrypto.nodeSha512(input);
chai.expect(output).to.eql(expectedOutput);
Expand Down Expand Up @@ -143,7 +143,7 @@ describe("NodeJS", () => {
output = nodeCrypto.nodeHmacSha256Sign(macKey, dataToMac);
});

it("should sign sucessfully", async () => {
it("should sign successfully", async () => {
chai.expect(output).to.eql(expectedOutput);
});

Expand Down
2 changes: 1 addition & 1 deletion crypto/crypto/test/random.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe("RandomBytes", () => {
key = testRandomBytes(length);
});

it("should generate random bytes sucessfully", async () => {
it("should generate random bytes successfully", async () => {
chai.expect(key).to.not.be.undefined;
});

Expand Down
4 changes: 2 additions & 2 deletions crypto/crypto/test/sha2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("SHA256", () => {
expectedOutput = hexToArray(TEST_SHA256_HASH);
});

it("should hash buffer sucessfully", async () => {
it("should hash buffer successfully", async () => {
const input = utf8ToArray(TEST_MESSAGE_STR);
const output = await isoCrypto.sha256(input);
chai.expect(output).to.eql(expectedOutput);
Expand All @@ -36,7 +36,7 @@ describe("SHA512", () => {
expectedOutput = hexToArray(TEST_SHA512_HASH);
});

it("should hash buffer sucessfully", async () => {
it("should hash buffer successfully", async () => {
const input = utf8ToArray(TEST_MESSAGE_STR);
const output = await isoCrypto.sha512(input);
chai.expect(output).to.eql(expectedOutput);
Expand Down
2 changes: 1 addition & 1 deletion crypto/randombytes/test/browser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("Browser", () => {
key = browserCrypto.randomBytes(length);
});

it("should generate random bytes sucessfully", async () => {
it("should generate random bytes successfully", async () => {
chai.expect(key).to.not.be.undefined;
});

Expand Down
2 changes: 1 addition & 1 deletion crypto/randombytes/test/fallback.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("Fallback", () => {
key = fallbackCrypto.randomBytes(length);
});

it("should generate random bytes sucessfully", async () => {
it("should generate random bytes successfully", async () => {
chai.expect(key).to.not.be.undefined;
});

Expand Down
2 changes: 1 addition & 1 deletion crypto/randombytes/test/node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("NodeJS", () => {
key = nodeCrypto.randomBytes(length);
});

it("should generate random bytes sucessfully", async () => {
it("should generate random bytes successfully", async () => {
chai.expect(key).to.not.be.undefined;
});

Expand Down