scratch-vm/test/unit/serialization_sb3.js
Andrew Sliwinski 6d83931341 WIP clean-up
2016-12-30 10:19:58 -05:00

19 lines
551 B
JavaScript

var test = require('tap').test;
var VirtualMachine = require('../../src/index');
var sb3 = require('../../src/serialization/sb3');
test('serialize', function (t) {
var vm = new VirtualMachine();
vm.fromJSON(JSON.stringify(require('../fixtures/demo.json')));
var result = sb3.serialize(vm.runtime);
console.dir(JSON.stringify(result));
// @todo Analyize
t.end();
});
test('deserialize', function (t) {
var vm = new VirtualMachine();
var result = sb3.deserialize('', vm.runtime);
// @todo Analyize
t.end();
});