From c522d48c8f8157204b461e826bc49793f7476c78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Szab=C3=B3?= Date: Fri, 26 Aug 2016 01:50:57 +0200 Subject: [PATCH] Fix test to work with new serializer format --- test/js/utils/serialization/SerializerTest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/js/utils/serialization/SerializerTest.js b/test/js/utils/serialization/SerializerTest.js index cf136f3d..c6508817 100644 --- a/test/js/utils/serialization/SerializerTest.js +++ b/test/js/utils/serialization/SerializerTest.js @@ -31,7 +31,7 @@ describe("Serialization/Deserialization test", function() { var serializedPiskel = pskl.utils.Serializer.serializePiskel(piskel); var deserializer = pskl.utils.serialization.Deserializer; - deserializer.deserialize(JSON.parse(serializedPiskel), function (p) { + deserializer.deserialize(serializedPiskel, function (p) { expect(p.getLayerAt(0).getOpacity()).toBe(0); expect(p.getLayerAt(1).getOpacity()).toBe(0.3); expect(p.getLayerAt(2).getOpacity()).toBe(0.9);