Skip to content

Commit

Permalink
nicer jq test
Browse files Browse the repository at this point in the history
  • Loading branch information
akre54 committed Mar 13, 2014
1 parent b59b621 commit 291f3bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@
var view = new Backbone.View;
view.setElement('<p><a><b>test</b></a></p>');

strictEqual(view.el.nodeType, 1);

if (Backbone.$) {
ok(view.$el instanceof Backbone.$);
equal(view.$el[0], view.el);
strictEqual(view.$el[0], view.el);
} else {
ok(view.el.nodeType === 1);
strictEqual(view.$el, undefined);
}
});

Expand Down

0 comments on commit 291f3bc

Please sign in to comment.