mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-28 22:30:40 -04:00
Update test to use new function.
This commit is contained in:
parent
8c1e6095cb
commit
58c9b11dd3
1 changed files with 2 additions and 2 deletions
|
@ -2,12 +2,12 @@ const test = require('tap').test;
|
|||
const path = require('path');
|
||||
const VirtualMachine = require('../../src/index');
|
||||
const sb3 = require('../../src/serialization/sb3');
|
||||
const extract = require('../fixtures/extract');
|
||||
const readFileToBuffer = require('../fixtures/readProjectFile').readFileToBuffer;
|
||||
const projectPath = path.resolve(__dirname, '../fixtures/clone-cleanup.sb2');
|
||||
|
||||
test('serialize', t => {
|
||||
const vm = new VirtualMachine();
|
||||
vm.loadProject(extract(projectPath))
|
||||
vm.loadProject(readFileToBuffer(projectPath))
|
||||
.then(() => {
|
||||
const result = sb3.serialize(vm.runtime);
|
||||
// @todo Analyze
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue