aboutsummaryrefslogtreecommitdiffstats
path: root/test/JsonTest.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/JsonTest.js')
-rw-r--r--test/JsonTest.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/JsonTest.js b/test/JsonTest.js
index 1ed56da8..4afb7743 100644
--- a/test/JsonTest.js
+++ b/test/JsonTest.js
@@ -82,3 +82,7 @@ JsonTest.prototype.testItShouldSerializeSameObjectsMultipleTimes = function () {
JsonTest.prototype.testItShouldNotSerializeUndefinedValues = function () {
assertEquals('{}', angular.toJson({A:undefined}));
};
+
+JsonTest.prototype.testItShouldParseFloats = function () {
+ expect(fromJson("{value:2.55, name:'misko'}")).toEqual({value:2.55, name:'misko'});
+};