From 87f5c6e5b716100e203ec59c5874c3e927f83fa0 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 27 Mar 2012 10:21:49 -0700 Subject: refactor(fromJson): always use native JSON.parse This breaks IE7 for which you can use polyfill: https://github.com/douglascrockford/JSON-js or http://bestiejs.github.com/json3/ --- test/ngScenario/FutureSpec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ngScenario') diff --git a/test/ngScenario/FutureSpec.js b/test/ngScenario/FutureSpec.js index 2a75f275..9ae284dc 100644 --- a/test/ngScenario/FutureSpec.js +++ b/test/ngScenario/FutureSpec.js @@ -42,7 +42,7 @@ describe('angular.scenario.Future', function() { it('should parse json with fromJson', function() { var future = new angular.scenario.Future('test name', function(done) { - done(null, "{test: 'foo'}"); + done(null, '{"test": "foo"}'); }); future.fromJson().execute(angular.noop); expect(future.value).toEqual({test: 'foo'}); -- cgit v1.2.3