mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-13 06:49:19 -04:00
Improve integration test coverage
This commit is contained in:
parent
5daaaa4438
commit
6ee8959100
15 changed files with 202 additions and 6 deletions
test/integration
|
@ -6,13 +6,13 @@ var VirtualMachine = require('../../src/index');
|
|||
var uri = path.resolve(__dirname, '../fixtures/motion.sb2');
|
||||
var project = extract(uri);
|
||||
|
||||
test('motion project', function (t) {
|
||||
test('motion', function (t) {
|
||||
var vm = new VirtualMachine();
|
||||
|
||||
// Evaluate playground data and exit
|
||||
vm.on('playgroundData', function (e) {
|
||||
var threads = JSON.parse(e.threads);
|
||||
t.ok(threads.length === 0);
|
||||
t.ok(threads.length > 0);
|
||||
t.end();
|
||||
process.nextTick(process.exit);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue