Skip to content

Commit

Permalink
fix tests in wasm-bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
UMR1352 committed May 21, 2024
1 parent d9bdf59 commit 793a82f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindings/wasm/tests/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion bindings/wasm/tests/iota.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 793a82f

Please sign in to comment.