test serializing origin

This commit is contained in:
Eric Rosenbaum 2021-05-04 15:36:03 -04:00
parent 8483c1a467
commit fb09f9cbb9

View file

@ -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();
});
});