Skip to content

Commit

Permalink
include bem-matchers into tests
Browse files Browse the repository at this point in the history
  • Loading branch information
just-boris committed Apr 6, 2015
1 parent 7ebe5bb commit ce93975
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"jasmine-ajax": "~3.1.0",
"sinonjs": "~1.12.2",
"chai": "~2.2.0",
"jasmine-jquery": "~2.1.0"
"jasmine-jquery": "~2.1.0",
"bem-matchers": "~1.0.3"
}
}
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ function importMatchers(files, matchers) {
var matcherFile = bowerResolve.fastReadSync(matcher);
files.push(createPattern(matcherFile));
});
console.log(files);
}

module.exports = {
Expand Down
3 changes: 2 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ module.exports = function(config) {
'sinonjs',
'jasmine-ajax',
'chai',
'jasmine-jquery'
'jasmine-jquery',
'bem-matchers'
],

browsers: ['Firefox', 'PhantomJS']
Expand Down
6 changes: 6 additions & 0 deletions test/main.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ describe('matchers-loader', function() {
toHaveClass: jasmine.any(Function)
}));
});

it("bem-matchers", function() {
expect(expect()).toEqual(jasmine.objectContaining({
toHaveMod: jasmine.any(Function)
}));
});
});

0 comments on commit ce93975

Please sign in to comment.