Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

Commit

Permalink
Fix var names in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiefolsom committed Aug 18, 2015
1 parent 56b438c commit e957419
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/jstests/test-learning-resource.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,16 +225,16 @@ define(['QUnit', 'jquery', 'react', 'lodash', 'learning_resources',
assert.equal($vocabOptions[0].selected, false);
assert.equal($vocabOptions[1].selected, true);
// on selection of the second vocabulary, make sure the term selector updates.
var $termsSelect = $allSelects[1];
var $termsOptions = $($termsSelect).find("option");
var termsSelect = $allSelects[1];
var $termsOptions = $(termsSelect).find("option");
assert.equal($termsOptions.size(), 2);
assert.equal($termsOptions[0].selected, false);
assert.equal($termsOptions[1].selected, false);
// the second vocabulary can be a multi select
$($termsSelect)
$(termsSelect)
.val(["hard", "easy"])
.trigger('change');
React.addons.TestUtils.Simulate.change($termsSelect);
React.addons.TestUtils.Simulate.change(termsSelect);
component.forceUpdate(function() {
assert.equal($termsOptions[0].selected, true);
assert.equal($termsOptions[1].selected, true);
Expand Down

0 comments on commit e957419

Please sign in to comment.