aboutsummaryrefslogtreecommitdiffstats
path: root/test/JsonSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-09-08 13:56:29 -0700
committerIgor Minar2011-10-11 11:01:45 -0700
commit4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (patch)
tree91f70bb89b9c095126fbc093f51cedbac5cb0c78 /test/JsonSpec.js
parentdf6d2ba3266de405ad6c2f270f24569355706e76 (diff)
downloadangular.js-4f78fd692c0ec51241476e6be9a4df06cd62fdd6.tar.bz2
feat(forms): new and improved forms
Diffstat (limited to 'test/JsonSpec.js')
-rw-r--r--test/JsonSpec.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/JsonSpec.js b/test/JsonSpec.js
index b0bb15bc..2bd7241f 100644
--- a/test/JsonSpec.js
+++ b/test/JsonSpec.js
@@ -15,6 +15,10 @@ describe('json', function(){
expect(toJson({$$some:'value', 'this':1, '$parent':1}, false)).toEqual('{}');
});
+ it('should not serialize this or $parent', function(){
+ expect(toJson({'this':'value', $parent:'abc'}, false)).toEqual('{}');
+ });
+
it('should serialize strings with escaped characters', function() {
expect(toJson("7\\\"7")).toEqual("\"7\\\\\\\"7\"");
});