Skip to content

Commit 9fca08b

Browse files
Remove yeoman-assert (#81)
* Remove yeoman-assert Remove deprecated `yeoman-assert` package whose functionality is now part of `yeoman-test`. * Fix tests Replace `yeoman-test:assert.strictEqual()` with `assert:asserts.equal()`.
1 parent b3d7a68 commit 9fca08b

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

package-lock.json

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"glob": "^11.0.3",
4343
"mocha": "^11.7.1",
4444
"prettier": "3.6.2",
45-
"yeoman-assert": "^3.1.1",
4645
"yeoman-environment": "^5.0.0",
4746
"yeoman-test": "^11.0.0"
4847
},

test/test-app.js

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

3-
import assert from 'yeoman-assert';
3+
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)