Skip to content

Commit

Permalink
build(build): Fix shit
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjoverm committed Jan 29, 2017
1 parent 665cc4e commit ee02863
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cache:
notifications:
email: false
node_js:
- '7'
- '6'
before_script:
- npm prune && npm cache clean
script:
Expand Down
7 changes: 2 additions & 5 deletions test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import { Action, KeyCombo, shortcutJS } from '../src'
import { getMockedEvent } from './utils'


/**
* Mock window
*/
interface MockWindow extends Window {
addEventListener: jest.Mock<{}> & typeof window.addEventListener
removeEventListener: jest.Mock<{}> & typeof window.removeEventListener
}
function getMockWindow() {
let myGlobal = global as any
myGlobal.addEventListener = jest.fn()
myGlobal.removeEventListener = jest.fn()
return myGlobal
return myGlobal as any
}

/**
Expand Down

0 comments on commit ee02863

Please sign in to comment.