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.
2022-05-23 13:12:03 +00:00
|
|
|
import * as core from "@peculiar/webcrypto-core";
|
|
|
|
import * as assert from "assert";
|
|
|
|
|
|
|
|
context("CryptoKey", () => {
|
|
|
|
|
|
|
|
context("isKeyType", () => {
|
|
|
|
it("correct key type", () => {
|
2022-05-23 21:09:47 +00:00
|
|
|
assert.equal(core.CryptoKey.isKeyType("secret"), true);
|
2022-05-23 13:12:03 +00:00
|
|
|
});
|
|
|
|
it("incorrect key type", () => {
|
2022-05-23 21:09:47 +00:00
|
|
|
assert.equal(core.CryptoKey.isKeyType("Secret"), false);
|
2022-05-23 13:12:03 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|