Moved toHaveClass matcher into core so that it can be used in Karma

- Fixes #1503
This commit is contained in:
Steve Gravrock
2018-02-10 10:55:44 -08:00
committed by Gregg Van Hove
parent 8326ecf919
commit 11827572d3
7 changed files with 67 additions and 45 deletions

View File

@@ -21,6 +21,7 @@ getJasmineRequireObj().requireMatchers = function(jRequire, j$) {
'toHaveBeenCalledBefore',
'toHaveBeenCalledTimes',
'toHaveBeenCalledWith',
'toHaveClass',
'toMatch',
'toThrow',
'toThrowError',

View File

@@ -1,4 +1,4 @@
jasmineRequire.toHaveClass = function(j$) {
getJasmineRequireObj().toHaveClass = function(j$) {
/**
* {@link expect} the actual value to be a DOM element that has the expected class
* @function

View File

@@ -3,5 +3,4 @@ jasmineRequire.html = function(j$) {
j$.HtmlReporter = jasmineRequire.HtmlReporter(j$);
j$.QueryString = jasmineRequire.QueryString();
j$.HtmlSpecFilter = jasmineRequire.HtmlSpecFilter();
j$.matchers.toHaveClass = jasmineRequire.toHaveClass(j$);
};