Skip to content

Commit bc6b263

Browse files
Clay Reimannclayreimann
authored andcommitted
Restructure tests to run in mocha
1 parent 826d982 commit bc6b263

26 files changed

+2013
-1094
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
1010

11+
[*.yml]
12+
indent_size = 2
13+
1114
[*.md]
1215
trim_trailing_whitespace = false

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
.idea
33
node_modules/
44
coverage/
5-
dist/*.js
6-
dist/*.map
75

6+
.zuulrc
87
npm-debug.log
98
sauce.json

.jshintrc

Lines changed: 56 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,65 @@
11
{
2-
// JSHint Default Configuration File (as on JSHint website)
3-
// See http://jshint.com/docs/ for more details
4-
5-
"maxerr" : 50, // {int} Maximum error before stopping
2+
"maxerr" : 50,
63

74
// Enforcing
8-
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
9-
"camelcase" : false, // true: Identifiers must be in camelCase
10-
"curly" : false, // true: Require {} for every new block or scope
11-
"eqeqeq" : true, // true: Require triple equals (===) for comparison
12-
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
13-
"freeze" : true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc.
14-
"immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
15-
"indent" : 2, // {int} Number of spaces to use for indentation
16-
"latedef" : false, // true: Require variables/functions to be defined before being used
17-
"newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()`
18-
"noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
19-
"noempty" : true, // true: Prohibit use of empty blocks
20-
"nonbsp" : true, // true: Prohibit "non-breaking whitespace" characters.
21-
"nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment)
22-
"plusplus" : false, // true: Prohibit use of `++` & `--`
23-
"quotmark" : false, // Quotation mark consistency:
24-
// false : do nothing (default)
25-
// true : ensure whatever is used is consistent
26-
// "single" : require single quotes
27-
// "double" : require double quotes
28-
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
29-
"unused" : true, // true: Require all defined variables be used
30-
"strict" : true, // true: Requires all functions run in ES5 Strict Mode
31-
"maxparams" : false, // {int} Max number of formal params allowed per function
32-
"maxdepth" : false, // {int} Max depth of nested blocks (within functions)
33-
"maxstatements" : false, // {int} Max number statements per function
34-
"maxcomplexity" : false, // {int} Max cyclomatic complexity per function
35-
"maxlen" : false, // {int} Max number of characters per line
5+
"bitwise" : true,
6+
"camelcase" : false,
7+
"curly" : false,
8+
"eqeqeq" : true,
9+
"forin" : true,
10+
"freeze" : true,
11+
"immed" : false,
12+
"indent" : 2,
13+
"latedef" : false,
14+
"newcap" : false,
15+
"noarg" : true,
16+
"noempty" : true,
17+
"nonbsp" : true,
18+
"nonew" : false,
19+
"plusplus" : false,
20+
"quotmark" : false,
21+
"undef" : true,
22+
"unused" : true,
23+
"strict" : true,
24+
"maxparams" : false,
25+
"maxdepth" : false,
26+
"maxstatements" : false,
27+
"maxcomplexity" : false,
28+
"maxlen" : false,
3629

3730
// Relaxing
38-
"asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
39-
"boss" : false, // true: Tolerate assignments where comparisons would be expected
40-
"debug" : false, // true: Allow debugger statements e.g. browser breakpoints.
41-
"eqnull" : false, // true: Tolerate use of `== null`
42-
"es5" : false, // true: Allow ES5 syntax (ex: getters and setters)
43-
"esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`)
44-
"moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
45-
// (ex: `for each`, multiple try/catch, function expression…)
46-
"evil" : false, // true: Tolerate use of `eval` and `new Function()`
47-
"expr" : false, // true: Tolerate `ExpressionStatement` as Programs
48-
"funcscope" : false, // true: Tolerate defining variables inside control statements
49-
"globalstrict" : false, // true: Allow global "use strict" (also enables 'strict')
50-
"iterator" : false, // true: Tolerate using the `__iterator__` property
51-
"lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
52-
"laxbreak" : false, // true: Tolerate possibly unsafe line breakings
53-
"laxcomma" : false, // true: Tolerate comma-first style coding
54-
"loopfunc" : false, // true: Tolerate functions being defined in loops
55-
"multistr" : false, // true: Tolerate multi-line strings
56-
"noyield" : false, // true: Tolerate generator functions with no yield statement in them.
57-
"notypeof" : false, // true: Tolerate invalid typeof operator values
58-
"proto" : false, // true: Tolerate using the `__proto__` property
59-
"scripturl" : false, // true: Tolerate script-targeted URLs
60-
"shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
61-
"sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
62-
"supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;`
63-
"validthis" : false, // true: Tolerate using this in a non-constructor function
31+
"asi" : false,
32+
"boss" : false,
33+
"debug" : false,
34+
"eqnull" : false,
35+
"es5" : false,
36+
"esnext" : false,
37+
"moz" : false,
38+
"evil" : false,
39+
"expr" : false,
40+
"funcscope" : false,
41+
"globalstrict" : false,
42+
"iterator" : false,
43+
"lastsemic" : false,
44+
"laxbreak" : false,
45+
"laxcomma" : false,
46+
"loopfunc" : false,
47+
"multistr" : false,
48+
"noyield" : false,
49+
"notypeof" : false,
50+
"proto" : false,
51+
"scripturl" : false,
52+
"shadow" : false,
53+
"sub" : false,
54+
"supernew" : false,
55+
"validthis" : false,
6456

65-
// Environments
66-
"browser" : true, // Web Browser (window, document, etc)
67-
"browserify" : false, // Browserify (node.js code in the browser)
68-
"couch" : false, // CouchDB
69-
"devel" : true, // Development/debugging (alert, confirm, etc)
70-
"dojo" : false, // Dojo Toolkit
71-
"jasmine" : false, // Jasmine
72-
"jquery" : false, // jQuery
73-
"mocha" : true, // Mocha
74-
"mootools" : false, // MooTools
75-
"node" : true, // Node.js
76-
"nonstandard" : false, // Widely adopted globals (escape, unescape, etc)
77-
"prototypejs" : false, // Prototype and Scriptaculous
78-
"qunit" : false, // QUnit
79-
"rhino" : false, // Rhino
80-
"shelljs" : false, // ShellJS
81-
"worker" : false, // Web Workers
82-
"wsh" : false, // Windows Scripting Host
83-
"yui" : false, // Yahoo User Interface
57+
"browser" : true,
58+
"devel" : true,
59+
"node" : true,
8460

85-
// Custom Globals
8661
"globals" : {
87-
"require": false,
88-
"define": false,
89-
"escape": false,
90-
"should": false
91-
} // additional predefined global variables
62+
"require" : false,
63+
"define" : false
64+
}
9265
}

.travis.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ language: node_js
33
sudo: false
44

55
node_js:
6-
- "4.1"
7-
- "4.0"
6+
- "5.7"
7+
- "4.3"
88
- "0.12"
9-
- "0.11"
109
- "0.10"
1110

1211
cache:
@@ -18,6 +17,5 @@ before_install:
1817

1918
script:
2019
- gulp lint
21-
- gulp test:ci
22-
- mocha test/
23-
- npm run-script codecov
20+
- gulp test:mocha
21+
- npm run codecov

dist/github.bundle.min.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/github.bundle.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)