Skip to content

Commit

Permalink
chore(badges): Update badges from Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Jover Morales committed Feb 2, 2017
1 parent d8778cb commit 4dc4afa
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ branches:
notifications:
email: false
node_js:
- '6'
- '7.2'
before_script:
- npm prune && npm cache clean
script:
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# ShortcutJS
[![npm](https://img.shields.io/npm/v/shortcutjs.svg)](https://www.npmjs.com/package/shortcutjs)
[![Travis](https://img.shields.io/travis/coosto/ShortcutJS.svg)]()
[![Travis](https://img.shields.io/travis/coosto/ShortcutJS.svg)](https://travis-ci.org/coosto/ShortcutJS)
[![Coverage Status](https://coveralls.io/repos/github/coosto/ShortcutJS/badge.svg?branch=master)](https://coveralls.io/github/coosto/ShortcutJS?branch=master)
[![bitHound Code](https://www.bithound.io/github/coosto/ShortcutJS/badges/code.svg)](https://www.bithound.io/github/coosto/ShortcutJS)
[![bitHound Dependencies](https://www.bithound.io/github/coosto/ShortcutJS/badges/dependencies.svg)](https://www.bithound.io/github/coosto/ShortcutJS/master/dependencies/npm)
[![npm](https://img.shields.io/npm/dt/shortcutjs.svg)](https://www.npmjs.com/package/shortcutjs)
[![David](https://img.shields.io/david/coosto/ShortcutJS.svg)]()
[![David](https://img.shields.io/david/dev/coosto/ShortcutJS.svg)]()


Keyboard manager for javascript and typescript, made for humans :sunglasses:

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"author": "Alex Jover Morales <alexjovermorales@gmail.com>",
"license": "Apache 2.0",
"engines": {
"node": ">=7.0.0"
"node": ">=6.0.0"
},
"scripts": {
"lint": "tslint -e node_modules/** **/*.ts ",
Expand Down
14 changes: 8 additions & 6 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@ 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 as any
window.addEventListener = jest.fn()
window.removeEventListener = jest.fn()
return window as MockWindow
}
let mockWindow = getMockWindow()

/**
* Actual test suite
*/
describe('shortcutJS', () => {
let mockWindow = getMockWindow()

beforeEach(() => {
shortcutJS.reset()

Expand Down

0 comments on commit 4dc4afa

Please sign in to comment.