Skip to content

Commit 331dde8

Browse files
committed
removed expect function
1 parent 5cd1797 commit 331dde8

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

packages/amazonq/test/e2e_new/amazonq/utils/generalUtils.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,6 @@ export async function sleep(timeout: number) {
1313
await new Promise((resolve) => setTimeout(resolve, timeout))
1414
}
1515

16-
/**
17-
* Minimal assertion library for testing
18-
* @param actual The value to test
19-
* @returns Object with assertion methods (equals, include, is.true)
20-
*/
21-
export const expect = (actual: any) => ({
22-
equals: (expected: any) => {
23-
if (actual !== expected) {
24-
throw new Error(`Expected ${expected}, got ${actual}`)
25-
}
26-
},
27-
include: (expected: any) => {
28-
if (!actual.includes(expected)) {
29-
throw new Error(`Expected "${actual}" to include "${expected}"`)
30-
}
31-
},
32-
is: {
33-
true: () => {
34-
if (actual !== true) {
35-
throw new Error(`Expected true, got ${actual}`)
36-
}
37-
},
38-
},
39-
})
40-
4116
/**
4217
* Waits for an element to be located, if there are multiple elements with the same locator it will just return the first one
4318
* @param webview The WebviewView instance

0 commit comments

Comments
 (0)