aboutsummaryrefslogtreecommitdiffstats
path: root/test/ngScenario/FutureSpec.js
diff options
context:
space:
mode:
authorIgor Minar2012-03-27 10:21:49 -0700
committerIgor Minar2012-03-28 16:30:38 -0700
commit87f5c6e5b716100e203ec59c5874c3e927f83fa0 (patch)
tree84f2953b17d9ef5b9ddc4bde298adea9f503b3bd /test/ngScenario/FutureSpec.js
parenta8a750ab05bdff73ba3af0b98f3f284ff8d1e743 (diff)
downloadangular.js-87f5c6e5b716100e203ec59c5874c3e927f83fa0.tar.bz2
refactor(fromJson): always use native JSON.parse
This breaks IE7 for which you can use polyfill: https://github.com/douglascrockford/JSON-js <!--[if lt IE 8]> <script src="json2.min.js"></script> <![endif]--> or http://bestiejs.github.com/json3/ <!--[if lt IE 8]> <script src="json3.min.js"></script> <![endif]-->
Diffstat (limited to 'test/ngScenario/FutureSpec.js')
-rw-r--r--test/ngScenario/FutureSpec.js2
1 files changed, 1 insertions, 1 deletions
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'});