Skip to content

Commit

Permalink
Tests: Add qunitjs basic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin committed Aug 13, 2019
1 parent d6d5b84 commit 4f58bf2
Show file tree
Hide file tree
Showing 7 changed files with 401 additions and 240 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module.exports = {
root: true,

// Support: IE11 without transpilation
"parserOptions": {
"ecmaVersion": 5
Expand Down
57 changes: 57 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@
"build": "npm run lint && npm run minify",
"minify": "uglifyjs -m -c --comments /Copyright/ -o jquery.mousewheel.min.js -- jquery.mousewheel.js",
"lint": "eslint jquery.mousewheel.js",
"test": "echo whoops"
"test": "echo Load test/index.html in a browser for now"
},
"dependencies": {
"jquery": ">=1.7.2"
},
"devDependencies": {
"eslint": "^6.1.0",
"eslint-config-jquery": "^2.0.0",
"qunit": "^2.9.2",
"uglify-js": "^3.6.0"
}
}
7 changes: 7 additions & 0 deletions test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
"globals": {
"QUnit": "readonly"
},
"rules": {
}
};
Loading

0 comments on commit 4f58bf2

Please sign in to comment.