mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-08 03:00:26 -04:00
14 lines
410 B
JavaScript
14 lines
410 B
JavaScript
$(document).ready(function() {
|
|
|
|
module("Backbone model");
|
|
|
|
test("model: clone", function() {
|
|
attrs = { 'foo': 1, 'bar': 2, 'baz': 3};
|
|
a = new Backbone.Model(attrs);
|
|
b = a.clone();
|
|
equals(b.foo,a.foo,"Foo should be the same on the clone.");
|
|
equals(b.bar,a.bar,"Bar should be the same on the clone.");
|
|
equals(b.baz,a.baz,"Baz should be the same on the clone.");
|
|
});
|
|
|
|
}); |