mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[jquery] update tests with @BigFunger feedback
This commit is contained in:
parent
203f145ebe
commit
7f2a2c2080
1 changed files with 11 additions and 1 deletions
|
@ -16,7 +16,17 @@ describe('jQuery.findTestSubject', function () {
|
|||
expect($found.is($noMatch)).to.be(false);
|
||||
});
|
||||
|
||||
it('finds all of the elements with either "saveButton" or "cancelButton"', function () {
|
||||
it('finds multiple elements with a subject', function () {
|
||||
var $container = $('<div>');
|
||||
var $match = $make('subject').appendTo($container);
|
||||
var $otherMatch = $make('subject').appendTo($container);
|
||||
|
||||
var $found = $container.findTestSubject('subject');
|
||||
expect($found.filter($match).size()).to.be(1);
|
||||
expect($found.filter($otherMatch).size()).to.be(1);
|
||||
});
|
||||
|
||||
it('finds all of the elements with either subject', function () {
|
||||
var $container = $('<div>');
|
||||
var $match1 = $make('subject').appendTo($container);
|
||||
var $match2 = $make('alsoSubject').appendTo($container);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue