Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
Cookbook: Change "equal" to "assert.equal" in example
Browse files Browse the repository at this point in the history
In cookbook example, global "equal" method appears to be typo in
relation to more prevalent "assert.equal" usage in cookbook. Comments
in qunit-1.15.0.js source also indicate global "equal" is "deprecated"
and remains only for "backwards compatibility."

Ref qunitjs/qunit#228
  • Loading branch information
TrueGit authored and jzaefferer committed Oct 29, 2014
1 parent 32a434e commit f6a7411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/cookbook.html
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ <h3 class="title" id="solution-165">Solution</h3>
var $fixture = $( "#qunit-fixture" );

$fixture.append( "&lt;div>hello!&lt;/div>" );
equal( $( "div", $fixture ).length, 1, "div added successfully!" );
assert.equal( $( "div", $fixture ).length, 1, "div added successfully!" );
});

QUnit.test( "Appends a span", function( assert ) {
Expand Down

0 comments on commit f6a7411

Please sign in to comment.