aboutsummaryrefslogtreecommitdiffstats
path: root/test/AngularSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/AngularSpec.js')
-rw-r--r--test/AngularSpec.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/AngularSpec.js b/test/AngularSpec.js
index bf952249..da70aef7 100644
--- a/test/AngularSpec.js
+++ b/test/AngularSpec.js
@@ -909,6 +909,10 @@ describe('angular', function() {
it('should not serialize scope instances', inject(function($rootScope) {
expect(toJson({key: $rootScope})).toEqual('{"key":"$SCOPE"}');
}));
+
+ it('should serialize undefined as undefined', function() {
+ expect(toJson(undefined)).toEqual(undefined);
+ });
});
});