Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Repair travis qunit #1961

Merged
merged 2 commits into from
Apr 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"devDependencies": {
"jquery": null,
"jquery-1.9.1": "jquery#1.9.1",
"qunit": "2.x",
"qunit": "2.3.0",
"requirejs-text": "2.x",
"underscore": "1.x",
"blanket": "1.x",
Expand Down
10 changes: 4 additions & 6 deletions test/repeater-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,14 +380,12 @@ define( function ( require ) {
QUnit.test( 'rendered.fu.repeater callback should receive correct data when called by renderItems function', function dataSourceCallbackTest( assert ) {
var ready = assert.async();
var $repeater = $( this.$markup );
var count = 0;
$repeater.on( 'rendered.fu.repeater', function rendered ( e, state ) {
count++;
// rendered is triggered on `this.$search` and `this.$element` in repeater.js
if ( e.target.id === $repeater.attr('id') ) {
assert.ok( state.data, 'data object exists' );
assert.equal( state.data.myVar, 'passalong', 'data returned from datasource was passed along' );

assert.ok( state.data, 'data object exists' );
assert.equal( state.data.myVar, 'passalong', 'data returned from datasource was passed along' );

if ( count === 2 ) {
ready();
}
} );
Expand Down