Skip to content

Commit 95e0df6

Browse files
committed
Fix Tests
1 parent 0f847d5 commit 95e0df6

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-7
lines changed

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
language: node_js
22
node_js:
33
- "5.2"
4-
5-
before_script:
6-
- npm install
7-
84
script:
95
- npm run build

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-validation-match",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"homepage": "https://github.com/TheSharpieOne/angular-validation-match",
55
"authors": [
66
"TheSharpieOne <evan@lostonia.com>"

files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var pkgFiles = {
99
'node_modules/sinon/pkg/sinon.js',
1010
'node_modules/dirty-chai/lib/dirty-chai.js',
1111
'node_modules/sinon-chai/lib/sinon-chai.js',
12-
'node_modules/chai/chai.js',
12+
'test-helper.js',
1313
'node_modules/angular/angular.js',
1414
'node_modules/angular-mocks/angular-mocks.js'
1515
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-validation-match",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"homepage": "https://github.com/TheSharpieOne/angular-validation-match",
55
"description": "Checks if one input matches another",
66
"main": "./index.js",

test-helper.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Set chai globals
2+
// From https://github.com/xdissent/karma-chai/blob/master/adapter.js
3+
var should;
4+
5+
(function(window) {
6+
window.should = window.chai.should();
7+
window.expect = window.chai.expect;
8+
window.assert = window.chai.assert;
9+
})(window);
10+
11+
window.chai.Assertion.addMethod('truthy', function() {
12+
new window.chai.Assertion(this._obj).to.be.ok();
13+
});
14+
15+
window.chai.Assertion.addMethod('falsy', function() {
16+
new window.chai.Assertion(this._obj).to.not.be.ok();
17+
});

0 commit comments

Comments
 (0)