mirror of
https://github.com/atom/atom.git
synced 2026-01-14 17:38:03 -05:00
Don’t require a specific jQuery instance for jasmine jQuery matchers
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
committed by
Max Brunsfeld
parent
0bcfa591f6
commit
7e06e10fcf
2
vendor/jasmine-jquery.js
vendored
2
vendor/jasmine-jquery.js
vendored
@@ -141,7 +141,7 @@ jasmine.JQuery.matchersClass = {};
|
||||
if (this.actual instanceof HTMLElement) {
|
||||
this.actual = jQuery(this.actual);
|
||||
}
|
||||
if (this.actual instanceof jQuery) {
|
||||
if (this.actual && this.actual.jquery) {
|
||||
var result = jQueryMatchers[methodName].apply(this, arguments);
|
||||
this.actual = jasmine.JQuery.elementToString(this.actual);
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user