Fix test to work with new serializer format

This commit is contained in:
Dávid Szabó 2016-08-26 01:50:57 +02:00 committed by Julian Descottes
parent c2b283be67
commit c522d48c8f

View File

@ -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);