mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-05-19 18:00:43 -04:00
test serializing origin
This commit is contained in:
parent
8483c1a467
commit
fb09f9cbb9
1 changed files with 10 additions and 0 deletions
|
@ -341,3 +341,13 @@ test('load origin value from SB3 file json metadata', t => {
|
|||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
test('serialize origin value if it is present', t => {
|
||||
const vm = new VirtualMachine();
|
||||
vm.loadProject(readFileToBuffer(originSB3ProjectPath))
|
||||
.then(() => {
|
||||
const result = sb3.serialize(vm.runtime);
|
||||
t.type(result.meta.origin, 'string');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue