Added basic integration tests for all built-in matchers

This commit is contained in:
Steve Gravrock
2019-09-06 13:44:15 -07:00
parent f056f3b86c
commit 5a219da848
5 changed files with 506 additions and 17 deletions

View File

@@ -0,0 +1,24 @@
(function(env) {
function domHelpers() {
var doc;
if (typeof document !== 'undefined') {
doc = document;
} else {
var JSDOM = require('jsdom').JSDOM;
var dom = new JSDOM();
doc = dom.window.document;
}
return {
document: doc,
createElementWithClassName: function(className) {
var el = this.document.createElement('div');
el.className = className;
return el;
}
};
}
env.domHelpers = domHelpers;
})(jasmine.getEnv());