From 11f24e9523c887bba9083d8e0d62bcce5415a6b8 Mon Sep 17 00:00:00 2001 From: evenevent Date: Wed, 14 Aug 2024 00:19:24 +0800 Subject: [PATCH] chore: remove repetitive words Signed-off-by: evenevent --- .../core-kernel/services/attributes/attribute-map.test.ts | 8 ++++---- .../transactions/bridgechain-registration.test.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/__tests__/unit/core-kernel/services/attributes/attribute-map.test.ts b/__tests__/unit/core-kernel/services/attributes/attribute-map.test.ts index 3ab42b1f04..664b464e49 100644 --- a/__tests__/unit/core-kernel/services/attributes/attribute-map.test.ts +++ b/__tests__/unit/core-kernel/services/attributes/attribute-map.test.ts @@ -77,25 +77,25 @@ describe("AttributeMap", () => { expect(map.has("someAttribute")).toBeFalse(); }); - it("should throw if an an unknown attribute is tried to be retrieved", () => { + it("should throw if an unknown attribute is tried to be retrieved", () => { const map: AttributeMap = new AttributeMap(new AttributeSet()); expect(() => map.get("someAttribute")).toThrow("Unknown attribute: someAttribute"); }); - it("should throw if an an unknown attribute is tried to be set", () => { + it("should throw if an unknown attribute is tried to be set", () => { const map: AttributeMap = new AttributeMap(new AttributeSet()); expect(() => map.set("someAttribute", "value")).toThrow("Unknown attribute: someAttribute"); }); - it("should throw if an an unknown attribute is tried to be forgotten", () => { + it("should throw if an unknown attribute is tried to be forgotten", () => { const map: AttributeMap = new AttributeMap(new AttributeSet()); expect(() => map.forget("someAttribute")).toThrow("Unknown attribute: someAttribute"); }); - it("should throw if an an unknown attribute is tried to be checked", () => { + it("should throw if an unknown attribute is tried to be checked", () => { const map: AttributeMap = new AttributeMap(new AttributeSet()); expect(() => map.has("someAttribute")).toThrow("Unknown attribute: someAttribute"); diff --git a/__tests__/unit/core-magistrate-crypto/transactions/bridgechain-registration.test.ts b/__tests__/unit/core-magistrate-crypto/transactions/bridgechain-registration.test.ts index 3812e9a5f1..2917e25916 100644 --- a/__tests__/unit/core-magistrate-crypto/transactions/bridgechain-registration.test.ts +++ b/__tests__/unit/core-magistrate-crypto/transactions/bridgechain-registration.test.ts @@ -178,7 +178,7 @@ describe("Bridgechain registration transaction", () => { expect(error).not.toBeUndefined(); }); - it("should fail duo to to big repository, max 100 chars", () => { + it("should fail duo to big repository, max 100 chars", () => { const bridgechainRegistration = builder .bridgechainRegistrationAsset({ name: "google",