mirror of
https://github.com/google/blockly.git
synced 2026-01-06 16:40:07 +01:00
Converting jsunit asserts to chai. (#3831)
* Converting jsunit asserts to chai. * Move jsunit functions to test_utilities. * Adding eslint exception for helper method.
This commit is contained in:
@@ -9,8 +9,8 @@ suite('Text Input Fields', function() {
|
||||
var actualValue = textInputField.getValue();
|
||||
var actualText = textInputField.getText();
|
||||
opt_expectedText = opt_expectedText || expectedValue;
|
||||
assertEquals(actualValue, expectedValue);
|
||||
assertEquals(actualText, opt_expectedText);
|
||||
chai.assert.equal(actualValue, expectedValue);
|
||||
chai.assert.equal(actualText, opt_expectedText);
|
||||
}
|
||||
function assertValueDefault(textInputField) {
|
||||
assertValue(textInputField, '');
|
||||
|
||||
Reference in New Issue
Block a user