Skip to content

Commit 1ac5120

Browse files
committed
remove pending() calls for missing crypto.subtle and Worker
these are present in all supported environments.
1 parent 56e356e commit 1ac5120

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/crypto/src/pbkdf2.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,8 @@ describe("pbkdf2", () => {
123123
describe("pbkdf2Sha512Subtle", () => {
124124
it("works", async () => {
125125
const subtle = await getSubtle();
126-
if (!subtle) {
127-
pending("Subtle is not available in this environment");
128-
return;
126+
if (subtle === undefined) {
127+
throw new Error("Subtle is not available in this environment");
129128
}
130129

131130
{

packages/json-rpc/src/jsonrpcclient.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { JsonRpcRequest, JsonRpcResponse } from "./types";
88

99
function pendingWithoutWorker(): void {
1010
if (typeof Worker === "undefined") {
11-
pending("Environment without WebWorker support detected. Marked as pending.");
11+
throw new Error("Environment without WebWorker support detected.");
1212
}
1313
}
1414

0 commit comments

Comments
 (0)