Description
karma-jasmine-dom
adapts the jasmine-dom-custom-matchers
package to the karma
framework.
- All the available matchers are described in the
jasmine-dom-custom-matchers
documentation - See also
karma-html
to test html files in the browser withkarma
[link]
Usage
- Run
npm install karma-jasmine-dom
- Add the following frameworks into your
karma.conf.js
file:
module { config;};
Mind that
jasmine-dom
must precedejasmine
(as above) in theframeworks
array. The frameworks are loaded from right to left and thejasmine
must be loaded first, as thejasmine-dom
arejasmine
custom matchers.
Tests
Load the matchers with jasmine.addMatchers
native method:
;