mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-03-13 17:04:39 -04:00
Fixing tests
This commit is contained in:
parent
4dd83cf717
commit
80499c9ae5
1 changed files with 4 additions and 2 deletions
|
@ -1,11 +1,13 @@
|
|||
const test = require('tap').test;
|
||||
const path = require('path');
|
||||
const VirtualMachine = require('../../src/index');
|
||||
const sb3 = require('../../src/serialization/sb3');
|
||||
const demoSb3 = require('../fixtures/demo.json');
|
||||
const extract = require('../fixtures/extract');
|
||||
const projectPath = path.resolve(__dirname, '../fixtures/clone-cleanup.sb2');
|
||||
|
||||
test('serialize', t => {
|
||||
const vm = new VirtualMachine();
|
||||
vm.loadProject(JSON.stringify(demoSb3))
|
||||
vm.loadProject(extract(projectPath))
|
||||
.then(() => {
|
||||
const result = sb3.serialize(vm.runtime);
|
||||
// @todo Analyze
|
||||
|
|
Loading…
Reference in a new issue