Skip to content

Commit 58d4c96

Browse files
Fix tests
Replace `yeoman-test:assert.strictEqual()` with `assert:asserts.equal()`.
1 parent 4b598b9 commit 58d4c96

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/test-app.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
import assert from 'yeoman-test';
4+
import asserts from 'assert';
45
import { glob } from 'glob';
56
import helpers, { result } from 'yeoman-test';
67
import os from 'os';
@@ -165,7 +166,7 @@ describe('aspnet-oauth:app', () => {
165166
if (clone.status !== 0 && clone.output) {
166167
console.error(clone.output.toString('utf8'));
167168
}
168-
assert.strictEqual(clone.status, 0);
169+
asserts.equal(clone.status, 0);
169170

170171
// Run the generator to create the project
171172
context = await helpers
@@ -190,7 +191,7 @@ describe('aspnet-oauth:app', () => {
190191
if (dotnetSlnAdd.status !== 0) {
191192
console.error(dotnetSlnAdd.output.toString('utf8'));
192193
}
193-
assert.strictEqual(dotnetSlnAdd.status, 0);
194+
asserts.equal(dotnetSlnAdd.status, 0);
194195

195196
// Build the solution, run the tests and generate the NuGet packages
196197
let build;
@@ -209,7 +210,7 @@ describe('aspnet-oauth:app', () => {
209210
if (build.status !== 0 && build.output) {
210211
console.error(build.output.toString('utf8'));
211212
}
212-
assert.strictEqual(build.status, 0);
213+
asserts.equal(build.status, 0);
213214
});
214215

215216
it('compiles the provider', async () => {

0 commit comments

Comments
 (0)