Skip to content

Commit c01feea

Browse files
author
DoubleU23
committed
fixxed tests
1 parent f4e5321 commit c01feea

File tree

2 files changed

+49
-46
lines changed

2 files changed

+49
-46
lines changed

package.json

Lines changed: 48 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,50 @@
11
{
2-
"name": "tailored-keymapping",
3-
"author": "Stefan Friedl @ Tailored-Digital",
4-
"version": "0.1.45",
5-
"description": "map objectKeys with given keyMap",
6-
"main": "dist/TailoredKeymapping.class.js",
7-
"scripts": {
8-
"test": "node_modules/mocha/bin/mocha tests/index.js --require tests/utils/babel-register.js",
9-
"bugs": "node_modules/mocha/bin/mocha tests/bugs.js --require tests/utils/babel-register.js",
10-
"build": "babel src/TailoredKeymapping.class.js --out-file dist/TailoredKeymapping.class.js --source-maps"
11-
},
12-
"repository": {
13-
"type": "git",
14-
"url": "git+ssh://git@github.com/DoubleU23/tailored-keymapping.git"
15-
},
16-
"keywords": [
17-
"objectkeys",
18-
"keymapping",
19-
"tailored-apps",
20-
"tailored-digital"
21-
],
22-
"license": "ISC",
23-
"bugs": {
24-
"url": "https://github.com/DoubleU23/tailored-keymapping/issues"
25-
},
26-
"homepage": "https://github.com/DoubleU23/tailored-keymapping#readme",
27-
"dependencies": {
28-
"lodash": "^4.6.0"
29-
},
30-
"devDependencies": {
31-
"babel": "^6.5.2",
32-
"babel-cli": "^6.6.5",
33-
"babel-eslint": "^5.0.0",
34-
"babel-plugin-react-transform": "^2.0.0",
35-
"babel-plugin-syntax-async-functions": "^6.5.0",
36-
"babel-plugin-syntax-object-rest-spread": "^6.5.0",
37-
"babel-plugin-transform-class-properties": "^6.6.0",
38-
"babel-plugin-transform-decorators": "^6.6.5",
39-
"babel-plugin-transform-object-rest-spread": "^6.5.0",
40-
"babel-polyfill": "^6.6.1",
41-
"babel-preset-es2015": "^6.6.0",
42-
"babel-preset-react": "^6.5.0",
43-
"babel-register": "^6.6.0",
44-
"eslint-plugin-promise": "^1.1.0",
45-
"eslint-plugin-standard": "^1.3.2",
46-
"mocha": "^2.4.5"
47-
}
2+
"name": "tailored-keymapping",
3+
"author": "Stefan Friedl @ Tailored-Digital",
4+
"version": "0.1.45",
5+
"description": "map objectKeys with given keyMap",
6+
"main": "dist/TailoredKeymapping.class.js",
7+
"scripts": {
8+
"test": "node_modules/mocha/bin/mocha tests/index.js --require tests/utils/babel-register.js",
9+
"bugs": "node_modules/mocha/bin/mocha tests/bugs.js --require tests/utils/babel-register.js",
10+
"build": "babel src/TailoredKeymapping.class.js --out-file dist/TailoredKeymapping.class.js --source-maps"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "git+ssh://git@github.com/DoubleU23/tailored-keymapping.git"
15+
},
16+
"keywords": [
17+
"objectkeys",
18+
"keymapping",
19+
"tailored-apps",
20+
"tailored-digital"
21+
],
22+
"license": "ISC",
23+
"bugs": {
24+
"url": "https://github.com/DoubleU23/tailored-keymapping/issues"
25+
},
26+
"homepage": "https://github.com/DoubleU23/tailored-keymapping#readme",
27+
"dependencies": {
28+
"eslint": "^3.1.1",
29+
"lodash": "^4.6.0"
30+
},
31+
"devDependencies": {
32+
"babel": "^6.5.2",
33+
"babel-cli": "^6.6.5",
34+
"babel-eslint": "^5.0.0",
35+
"babel-plugin-react-transform": "^2.0.0",
36+
"babel-plugin-syntax-async-functions": "^6.5.0",
37+
"babel-plugin-syntax-object-rest-spread": "^6.5.0",
38+
"babel-plugin-transform-class-properties": "^6.6.0",
39+
"babel-plugin-transform-decorators": "^6.6.5",
40+
"babel-plugin-transform-object-rest-spread": "^6.5.0",
41+
"babel-polyfill": "^6.6.1",
42+
"babel-preset-es2015": "^6.6.0",
43+
"babel-preset-react": "^6.5.0",
44+
"babel-register": "^6.6.0",
45+
"eslint-plugin-import": "^1.11.1",
46+
"eslint-plugin-promise": "^1.1.0",
47+
"eslint-plugin-standard": "^1.3.2",
48+
"mocha": "^2.4.5"
49+
}
4850
}

tests/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ describe('OPTIONS', () => {
8888
catch(err) {
8989
_err = err
9090
}
91+
9192
assert.equal(_err.message.indexOf('\'keymap.mykey\' not found or invalid') !== -1, true)
9293
done()
9394
})

0 commit comments

Comments
 (0)