fix: change local tests to use chai asserts

This commit is contained in:
Beka Westberg
2022-03-01 17:31:36 +00:00
parent e276745b6b
commit fb57f18f90
3 changed files with 12 additions and 11 deletions

View File

@@ -38,7 +38,7 @@ suite('Test Node.js', function() {
const headlessXml = Blockly.Xml.workspaceToDom(workspace, true);
const headlessText = Blockly.Xml.domToPrettyText(headlessXml);
assert.equal(headlessText, xmlText, 'equal');
chai.assert.equal(headlessText, xmlText, 'equal');
});
test('Generate Code', function() {
const xml = Blockly.Xml.textToDom(xmlText);
@@ -51,7 +51,7 @@ suite('Test Node.js', function() {
const code = Blockly.JavaScript.workspaceToCode(workspace);
// Check output
assert.equal('window.alert(\'Hello from Blockly!\');', code.trim(), 'equal');
chai.assert.equal('window.alert(\'Hello from Blockly!\');', code.trim(), 'equal');
});
});