Skip to content

Commit 6871814

Browse files
committed
chore: fix unit test
1 parent 94b1f9a commit 6871814

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/plugin-create.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ describe("Plugin create command tests", () => {
182182

183183
it("setupSeed, should remove projectDir", async () => {
184184
const errorMessage = "Test fail";
185-
const npmService = testInjector.resolve("npm");
186-
sandbox.stub(npmService, "install").callsFake(() => {
185+
const packageManagerService = testInjector.resolve("packageManager");
186+
sandbox.stub(packageManagerService, "install").callsFake(() => {
187187
return Promise.reject(new Error(errorMessage));
188188
});
189189

0 commit comments

Comments
 (0)