This repository has been archived on 2023-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
webcrypto/packages/core/test/key.spec.ts

16 lines
378 B
TypeScript

import * as core from "@peculiar/webcrypto-core";
import * as assert from "assert";
context("CryptoKey", () => {
context("isKeyType", () => {
it("correct key type", () => {
assert.equal(core.BaseCryptoKey.isKeyType("secret"), true);
});
it("incorrect key type", () => {
assert.equal(core.BaseCryptoKey.isKeyType("Secret"), false);
});
});
});