From 793a82fc07b258802d0775666d7e09472cbede36 Mon Sep 17 00:00:00 2001 From: Enrico Marconi Date: Tue, 21 May 2024 16:28:08 +0200 Subject: [PATCH] fix tests in wasm-bindings --- bindings/wasm/tests/core.ts | 2 +- bindings/wasm/tests/iota.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/wasm/tests/core.ts b/bindings/wasm/tests/core.ts index 396ef146d9..9bde0e335d 100644 --- a/bindings/wasm/tests/core.ts +++ b/bindings/wasm/tests/core.ts @@ -225,7 +225,7 @@ describe("CoreDocument", function() { // Resolve. const resolved = doc.resolveMethod(fragment, scope)!; assert.deepStrictEqual(resolved.id().fragment(), fragment); - assert.deepStrictEqual(resolved.type().toString(), MethodType.JsonWebKey().toString()); + assert.deepStrictEqual(resolved.type().toString(), MethodType.JsonWebKey2020().toString()); assert.deepStrictEqual(resolved.controller().toString(), doc.id().toString()); assert.deepStrictEqual(resolved.data().tryPublicKeyJwk().toJSON(), JWK.toJSON()); assert.deepStrictEqual(resolved.toJSON(), method.toJSON()); diff --git a/bindings/wasm/tests/iota.ts b/bindings/wasm/tests/iota.ts index b32279c3ae..9037dd5af4 100644 --- a/bindings/wasm/tests/iota.ts +++ b/bindings/wasm/tests/iota.ts @@ -100,7 +100,7 @@ describe("IotaDocument", function() { // Resolve. const resolved = doc.resolveMethod(fragment, scope)!; assert.deepStrictEqual(resolved.id().fragment(), fragment); - assert.deepStrictEqual(resolved.type().toString(), MethodType.JsonWebKey().toString()); + assert.deepStrictEqual(resolved.type().toString(), MethodType.JsonWebKey2020().toString()); assert.deepStrictEqual(resolved.controller().toString(), doc.id().toString()); assert.deepStrictEqual(resolved.data().tryPublicKeyJwk().toJSON(), JWK.toJSON()); assert.deepStrictEqual(resolved.toJSON(), method.toJSON());