mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-02 08:33:56 -04:00
test not serializing origin if it is not present
This commit is contained in:
parent
fb09f9cbb9
commit
7a2393bd56
1 changed files with 10 additions and 0 deletions
|
@ -351,3 +351,13 @@ test('serialize origin value if it is present', t => {
|
||||||
t.end();
|
t.end();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('do not serialize origin value if it is not present', t => {
|
||||||
|
const vm = new VirtualMachine();
|
||||||
|
vm.loadProject(readFileToBuffer(originAbsentSB3ProjectPath))
|
||||||
|
.then(() => {
|
||||||
|
const result = sb3.serialize(vm.runtime);
|
||||||
|
t.equal(result.meta.origin, undefined);
|
||||||
|
t.end();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue