mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix test to work with new serializer format
This commit is contained in:
parent
c2b283be67
commit
c522d48c8f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user