diff --git a/package-lock.json b/package-lock.json index 8596ecb..de17dcb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,6 @@ "glob": "^11.0.3", "mocha": "^11.7.1", "prettier": "3.6.2", - "yeoman-assert": "^3.1.1", "yeoman-environment": "^5.0.0", "yeoman-test": "^11.0.0" }, @@ -6007,17 +6006,6 @@ "node": ">=8" } }, - "node_modules/yeoman-assert": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yeoman-assert/-/yeoman-assert-3.1.1.tgz", - "integrity": "sha512-bCuLb/j/WzpvrJZCTdJJLFzm7KK8IYQJ3+dF9dYtNs2CUYyezFJDuULiZ2neM4eqjf45GN1KH/MzCTT3i90wUQ==", - "deprecated": "This package is deprecated. See: https://github.com/yeoman/yeoman/issues/1779", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4" - } - }, "node_modules/yeoman-environment": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/yeoman-environment/-/yeoman-environment-5.1.1.tgz", diff --git a/package.json b/package.json index 5ee8f35..cabc3ee 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,6 @@ "glob": "^11.0.3", "mocha": "^11.7.1", "prettier": "3.6.2", - "yeoman-assert": "^3.1.1", "yeoman-environment": "^5.0.0", "yeoman-test": "^11.0.0" }, diff --git a/test/test-app.js b/test/test-app.js index 3569e6f..0cbc179 100644 --- a/test/test-app.js +++ b/test/test-app.js @@ -1,6 +1,7 @@ 'use strict'; -import assert from 'yeoman-assert'; +import assert from 'yeoman-test'; +import asserts from 'assert'; import { glob } from 'glob'; import helpers, { result } from 'yeoman-test'; import os from 'os'; @@ -165,7 +166,7 @@ describe('aspnet-oauth:app', () => { if (clone.status !== 0 && clone.output) { console.error(clone.output.toString('utf8')); } - assert.strictEqual(clone.status, 0); + asserts.equal(clone.status, 0); // Run the generator to create the project context = await helpers @@ -190,7 +191,7 @@ describe('aspnet-oauth:app', () => { if (dotnetSlnAdd.status !== 0) { console.error(dotnetSlnAdd.output.toString('utf8')); } - assert.strictEqual(dotnetSlnAdd.status, 0); + asserts.equal(dotnetSlnAdd.status, 0); // Build the solution, run the tests and generate the NuGet packages let build; @@ -209,7 +210,7 @@ describe('aspnet-oauth:app', () => { if (build.status !== 0 && build.output) { console.error(build.output.toString('utf8')); } - assert.strictEqual(build.status, 0); + asserts.equal(build.status, 0); }); it('compiles the provider', async () => {