File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
packages/amazonq/test/e2e_new/amazonq/utils Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments