Last active
August 29, 2015 14:16
-
-
Save jameshartig/24c9b2f47c3ec271d82a to your computer and use it in GitHub Desktop.
failed test backbone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test("destroy models in each loop", 4, function() { | |
var collection = new Backbone.Collection([{id: 1}, {id: 2}, {id: 3}, {id: 4}]); | |
collection.each(function(model) { | |
notStrictEqual(model, undefined); | |
if (model !== undefined) { | |
model.destroy({url: function() {}}); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment