From 4f78fd692c0ec51241476e6be9a4df06cd62fdd6 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 8 Sep 2011 13:56:29 -0700 Subject: feat(forms): new and improved forms --- test/directivesSpec.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/directivesSpec.js') diff --git a/test/directivesSpec.js b/test/directivesSpec.js index c925bdb5..1cbb92b0 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -80,6 +80,11 @@ describe("directive", function() { expect(scope.$element.text()).toEqual('-0false'); }); + it('should render object as JSON ignore $$', function(){ + var scope = compile('
{{ {key:"value", $$key:"hide"} }}');
+ scope.$digest();
+ expect(fromJson(scope.$element.text())).toEqual({key:'value'});
+ });
+
});
describe('ng:bind-attr', function() {
--
cgit v1.2.3