Skip to content

Commit 70b9bd9

Browse files
improve test description
1 parent 28887b9 commit 70b9bd9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

v-next/hardhat/test/internal/core/plugins/detect-plugin-npm-dependency-problems.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe("Plugins - detect npm dependency problems", () => {
4141
);
4242
});
4343

44-
it("should pass validation if the package has been installed and the npmPackage is undefined but the id matches the package", async () => {
44+
it("should pass validation if the package has been installed and the npmPackage property is undefined but the id matches the installed package", async () => {
4545
const installedPackageProjectFixture = import.meta.resolve(
4646
"./fixture-projects/installed-package",
4747
);
@@ -70,20 +70,20 @@ describe("Plugins - detect npm dependency problems", () => {
7070
);
7171
});
7272

73-
it("should fail validation if the package has not been installed and the npmPackage is undefined but the id does not match the package", async () => {
73+
it("should fail validation if the package has been installed and the npmPackage property is undefined but the id has a value that does not match the installed package", async () => {
7474
const nonInstalledPackageProjectFixture = import.meta.resolve(
75-
"./fixture-projects/not-installed-package",
75+
"./fixture-projects/installed-package",
7676
);
7777

7878
await assertRejectsWithHardhatError(
7979
async () =>
8080
detectPluginNpmDependencyProblems(nonInstalledPackageProjectFixture, {
8181
...pluginWithNpmPackageUndefined,
82-
id: "example-plugin",
82+
id: "does-not-match-installed-plugin",
8383
}),
8484
HardhatError.ERRORS.CORE.PLUGINS.PLUGIN_NOT_INSTALLED,
8585
{
86-
pluginId: "example-plugin",
86+
pluginId: "does-not-match-installed-plugin",
8787
},
8888
);
8989
});

0 commit comments

Comments
 (0)