Skip to content

Commit 120caab

Browse files
committed
add console.warn to method
1 parent efd7b5d commit 120caab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/e2e/models/CodeServer.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ export class CodeServer {
7171
// if it is, we're connected!
7272
// if not, we may need to reload the page
7373
// Make sure to trim whitespace too
74-
return host ? CODE_SERVER_ADDRESS.includes(host.trim()) : false
74+
const isEditorConnected = host ? CODE_SERVER_ADDRESS.includes(host.trim()) : false
75+
if (!isEditorConnected) {
76+
console.warn(` Editor is not connected`)
77+
}
78+
return isEditorConnected
7579
}
7680

7781
/**

0 commit comments

Comments
 (0)