From 4a78e9c4affd9423e33a8ccd69f7adca701ad188 Mon Sep 17 00:00:00 2001 From: Andrew Sliwinski Date: Fri, 20 Apr 2018 10:29:29 -0400 Subject: [PATCH] All tests passing --- test/integration/internal-extension.js | 4 ++-- test/unit/extension_conversion.js | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/integration/internal-extension.js b/test/integration/internal-extension.js index 5dfb1ad73..570fce3cb 100644 --- a/test/integration/internal-extension.js +++ b/test/integration/internal-extension.js @@ -16,7 +16,7 @@ class TestInternalExtension { getInfo () { this.status.getInfoCalled = true; return { - id: 'test-internal-extension', + id: 'testInternalExtension', name: 'Test Internal Extension', blocks: [ { @@ -55,7 +55,7 @@ test('internal extension', t => { return vm.extensionManager._registerInternalExtension(extension).then(() => { t.ok(extension.status.getInfoCalled); - const func = vm.runtime.getOpcodeFunction('test-internal-extension.go'); + const func = vm.runtime.getOpcodeFunction('testInternalExtension_go'); t.type(func, 'function'); t.notOk(extension.status.goCalled); diff --git a/test/unit/extension_conversion.js b/test/unit/extension_conversion.js index fbe90bc6a..07f599230 100644 --- a/test/unit/extension_conversion.js +++ b/test/unit/extension_conversion.js @@ -59,7 +59,7 @@ const testExtensionInfo = { }; const testReporter = function (t, reporter) { - t.equal(reporter.json.type, 'test.reporter'); + t.equal(reporter.json.type, 'test_reporter'); t.equal(reporter.json.outputShape, ScratchBlocksConstants.OUTPUT_SHAPE_ROUND); t.equal(reporter.json.output, 'String'); t.notOk(reporter.json.hasOwnProperty('previousStatement')); @@ -68,7 +68,7 @@ const testReporter = function (t, reporter) { t.notOk(reporter.json.hasOwnProperty('message1')); t.notOk(reporter.json.hasOwnProperty('args0')); t.notOk(reporter.json.hasOwnProperty('args1')); - t.equal(reporter.xml, ''); + t.equal(reporter.xml, ''); }; const testSeparator = function (t, separator) { @@ -77,7 +77,7 @@ const testSeparator = function (t, separator) { }; const testCommand = function (t, command) { - t.equal(command.json.type, 'test.command'); + t.equal(command.json.type, 'test_command'); t.equal(command.json.outputShape, ScratchBlocksConstants.OUTPUT_SHAPE_SQUARE); t.assert(command.json.hasOwnProperty('previousStatement')); t.assert(command.json.hasOwnProperty('nextStatement')); @@ -89,12 +89,12 @@ const testCommand = function (t, command) { }); t.notOk(command.json.hasOwnProperty('args1')); t.equal(command.xml, - '' + + '' + ''); }; const testConditional = function (t, conditional) { - t.equal(conditional.json.type, 'test.ifElse'); + t.equal(conditional.json.type, 'test_ifElse'); t.equal(conditional.json.outputShape, ScratchBlocksConstants.OUTPUT_SHAPE_SQUARE); t.ok(conditional.json.hasOwnProperty('previousStatement')); t.ok(conditional.json.hasOwnProperty('nextStatement')); @@ -118,11 +118,11 @@ const testConditional = function (t, conditional) { name: 'SUBSTACK2' }); t.notOk(conditional.json.hasOwnProperty('args4')); - t.equal(conditional.xml, ''); + t.equal(conditional.xml, ''); }; const testLoop = function (t, loop) { - t.equal(loop.json.type, 'test.loop'); + t.equal(loop.json.type, 'test_loop'); t.equal(loop.json.outputShape, ScratchBlocksConstants.OUTPUT_SHAPE_SQUARE); t.ok(loop.json.hasOwnProperty('previousStatement')); t.notOk(loop.json.hasOwnProperty('nextStatement')); // isTerminal is set on this block @@ -143,7 +143,7 @@ const testLoop = function (t, loop) { t.equal(loop.json.args2[0].flip_rtl, true); t.notOk(loop.json.hasOwnProperty('args3')); t.equal(loop.xml, - '' + + '' + ''); };