Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 3c5cf79

Browse files
authored
test: Expect SeamAPIError on duplicate code (#111)
1 parent 2148717 commit 3c5cf79

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/errors.test.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import test from "ava"
22
import { v4 as uuidv4, validate as validateUUID } from "uuid"
3-
import Seam, {
4-
SeamActionAttemptError,
5-
SeamAPIError,
6-
SeamMalformedInputError,
7-
} from "../src"
3+
import Seam, { SeamAPIError, SeamMalformedInputError } from "../src"
84
import { getServer } from "./fixtures/plugins/get-server-plugin"
95

106
test("should throw instances of SeamAPIError", async (t) => {
@@ -50,7 +46,7 @@ test("should throw on malformed input with details", async (t) => {
5046
}
5147
})
5248

53-
test.failing("waiting on an errored action attempt should throw", async (t) => {
49+
test("waiting on an errored action attempt should throw", async (t) => {
5450
const { client, seed } = await getServer(true)
5551

5652
const ACCESS_CODE_TO_DUPLICATE = "111111"
@@ -66,7 +62,7 @@ test.failing("waiting on an errored action attempt should throw", async (t) => {
6662
code: ACCESS_CODE_TO_DUPLICATE,
6763
}),
6864
{
69-
instanceOf: SeamActionAttemptError,
65+
instanceOf: SeamAPIError,
7066
}
7167
)
7268
})

0 commit comments

Comments
 (0)