We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd9d882 commit 1b27c11Copy full SHA for 1b27c11
test/modelSpec.js
@@ -571,6 +571,17 @@ describe("model", function() {
571
expect(list.things).toEqualData(['foo']);
572
expect(list.$pristine()).toBe(true);
573
}));
574
+
575
+ it('should not choke on null values in arrays', inject(function(model) {
576
+ var data = { foo: 'bar' };
577
578
+ model('Tasks').create(data).$save();
579
580
+ $httpBackend.expectPOST('http://api/tasks', data).respond(200, angular.extend(
581
+ { baz: ['gooby', null] }, data
582
+ ));
583
+ $httpBackend.flush();
584
+ }));
585
});
586
587
describe("syncing", function() {
0 commit comments