Skip to content

Commit 61ae3d0

Browse files
committed
Merge pull request #40 from rapid7/feature-mocha-test-framework
Feature: Mocha test framework
2 parents 605fe1d + 13dfceb commit 61ae3d0

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"build": "electron-packager . Awsaml --asar --ignore=node_modules/electron --ignore=dist --out=dist --platform=all --arch=x64 --version=0.36.7 --app-version=${npm_package_version} --app-bundle-id=com.rapid7.awsaml --helper-bundle-id=com.rapid7.awsaml.helper",
2020
"postbuild": "export platform=darwin; npm run zip & export platform=linux; npm run zip & export platform=win32; npm run zip",
2121
"zip": "cd dist/Awsaml-${platform}-x64 && zip -q -FS -r ../awsaml-v${npm_package_version}-${platform}-x64.zip .",
22-
"lint": "eslint *.js views/*/** lib/*/**"
22+
"test": "mocha",
23+
"lint": "eslint *.js views/*/** lib/*/** test/**"
2324
},
2425
"dependencies": {
2526
"aws-sdk": "2.2.11",
@@ -46,6 +47,8 @@
4647
"eslint-config-airbnb": "^5.0.0",
4748
"eslint-config-rapid7": "0.0.15",
4849
"eslint-plugin-rapid7": "^5.0.1",
49-
"eslint-plugin-react": "^3.16.1"
50+
"eslint-plugin-react": "^3.16.1",
51+
"mocha": "^2.4.5",
52+
"should": "^8.2.2"
5053
}
5154
}

test/.eslintrc.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
env:
3+
mocha: true
4+
rules:
5+
# Arrow functions are discouraged since they can't access the Mocha context.
6+
# https://mochajs.org/#arrow-functions
7+
func-names: 0
8+
prefer-arrow-callback: 0

0 commit comments

Comments
 (0)