Removing any in the front
This commit is contained in:
parent
8348d13bfe
commit
39928b46f9
5 changed files with 52 additions and 46 deletions
|
@ -1,13 +1,17 @@
|
|||
declare let window:any;
|
||||
declare let window:WindowWithCypressAsserter;
|
||||
|
||||
interface WindowWithCypressAsserter extends Window {
|
||||
cypressAsserter: CypressAsserter;
|
||||
}
|
||||
|
||||
//this class is used to communicate with cypress, our e2e testing client
|
||||
//Since cypress cannot manipulate canvas, we notified it with console logs
|
||||
class CypressAsserter {
|
||||
|
||||
|
||||
constructor() {
|
||||
window.cypressAsserter = this
|
||||
}
|
||||
|
||||
|
||||
gameStarted() {
|
||||
console.log('Started the game')
|
||||
}
|
||||
|
@ -29,4 +33,4 @@ class CypressAsserter {
|
|||
}
|
||||
}
|
||||
|
||||
export const cypressAsserter = new CypressAsserter()
|
||||
export const cypressAsserter = new CypressAsserter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue