Skip to content

Commit

Permalink
Update tests for vodkabears#61
Browse files Browse the repository at this point in the history
  • Loading branch information
vodkabears committed Dec 19, 2014
1 parent 740d5cc commit c34e920
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test/remodal_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
throws(block, [expected], [message])
*/

var index1, index2, $inst1, $inst2,
$document = $(document);
var $document = $(document),
index1,
index2,
$inst1,
$inst2;

QUnit.begin(function() {
index1 = $("[data-remodal-id=modal]").data("remodal");
Expand All @@ -40,8 +43,15 @@
QUnit.test("JS-initialization", function() {
var $inst3 = $("[data-remodal-id=modal3]").remodal();

ok($inst3);
equal($inst3.index, 2);
});

QUnit.test("Re-initialization", function() {
var $inst3 = $("[data-remodal-id=modal3]").remodal();

ok($inst3);
equal($inst3.index, 2);
});

QUnit.asyncTest("Hash tracking", function(assert) {
Expand Down

0 comments on commit c34e920

Please sign in to comment.