Fix up tests.

This commit is contained in:
Karishma Chadha 2018-03-16 11:43:27 -04:00
parent 003ed01015
commit b4f6f24926
2 changed files with 8 additions and 6 deletions

View file

@ -5,11 +5,13 @@ const demoSb3 = require('../fixtures/demo.json');
test('serialize', t => {
const vm = new VirtualMachine();
vm.fromJSON(JSON.stringify(demoSb3));
const result = sb3.serialize(vm.runtime);
// @todo Analyze
t.type(JSON.stringify(result), 'string');
t.end();
vm.fromJSON(JSON.stringify(demoSb3))
.then(() => {
const result = sb3.serialize(vm.runtime);
// @todo Analyze
t.type(JSON.stringify(result), 'string');
t.end();
});
});
test('deserialize', t => {