Skip to content

Commit

Permalink
Merge pull request #229 from tom-sherman/assert-strictequal
Browse files Browse the repository at this point in the history
Replace deprecated `assert.equal` with `strictEqual`
  • Loading branch information
aeschli authored Dec 7, 2020
2 parents 0dbe295 + 5b110fb commit 07ae752
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ suite('Extension Test Suite', () => {
vscode.window.showInformationMessage('Start all tests.');

test('Sample test', () => {
assert.equal(-1, [1, 2, 3].indexOf(5));
assert.equal(-1, [1, 2, 3].indexOf(0));
assert.strictEqual(-1, [1, 2, 3].indexOf(5));
assert.strictEqual(-1, [1, 2, 3].indexOf(0));
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ suite('Extension Test Suite', () => {
vscode.window.showInformationMessage('Start all tests.');

test('Sample test', () => {
assert.equal(-1, [1, 2, 3].indexOf(5));
assert.equal(-1, [1, 2, 3].indexOf(0));
assert.strictEqual(-1, [1, 2, 3].indexOf(5));
assert.strictEqual(-1, [1, 2, 3].indexOf(0));
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ suite('Extension Test Suite', () => {
vscode.window.showInformationMessage('Start all tests.');

test('Sample test', () => {
assert.equal(-1, [1, 2, 3].indexOf(5));
assert.equal(-1, [1, 2, 3].indexOf(0));
assert.strictEqual(-1, [1, 2, 3].indexOf(5));
assert.strictEqual(-1, [1, 2, 3].indexOf(0));
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ suite('Extension Test Suite', () => {
vscode.window.showInformationMessage('Start all tests.');

test('Sample test', () => {
assert.equal(-1, [1, 2, 3].indexOf(5));
assert.equal(-1, [1, 2, 3].indexOf(0));
assert.strictEqual(-1, [1, 2, 3].indexOf(5));
assert.strictEqual(-1, [1, 2, 3].indexOf(0));
});
});
8 changes: 4 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ describe('test code generator', function () {

actual = JSON.parse(body);

assert.equal(actual.name, "Funky");
assert.equal(actual.colors['editor.background'], "#f5f5f5");
assert.strictEqual(actual.name, "Funky");
assert.strictEqual(actual.colors['editor.background'], "#f5f5f5");
done();
} catch (e) {
done(e);
Expand Down Expand Up @@ -487,8 +487,8 @@ describe('test code generator', function () {
var grammar = fs.readFileSync('syntaxes/crusty.tmLanguage.json', 'utf8');

var actualGrammar = JSON.parse(grammar);
assert.equal("Crusty", actualGrammar.name);
assert.equal("source.crusty", actualGrammar.scopeName);
assert.strictEqual("Crusty", actualGrammar.name);
assert.strictEqual("source.crusty", actualGrammar.scopeName);

done();
} catch (e) {
Expand Down

0 comments on commit 07ae752

Please sign in to comment.