Skip to content

Commit

Permalink
[unrelated] Fix e2e's lint:fix script and run it everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
alcuadrado committed Dec 29, 2020
1 parent 95807c5 commit 9734866
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"author": "Nomic Labs LLC",
"license": "MIT",
"scripts": {
"lint:fix": "node ../../node_modules/prettier/bin-prettier.js --write \"src/**/*.{js,ts}\" \"test/**/*.{js,ts}\" && yarn lint --fix",
"lint:fix": "node ../../node_modules/prettier/bin-prettier.js --write \"test/**/*.{js,ts}\" && yarn lint --fix",
"lint": "node ../../node_modules/tslint/bin/tslint --config tslint.json --project ./tsconfig.json",
"pretest": "node prepare-tests.js",
"test": "node ../../node_modules/mocha/bin/mocha --recursive \"test/**/*.ts\" --exit",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
},
{
version: "0.7.5",
}
},
],
},
paths: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
},
{
version: "0.7.5",
}
},
],
},
networks: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ describe("Internal test suite of hardhat-waffle's test project", function () {
).to.changeTokenBalance(token, receiver, 200);
});


it("should support the changeTokenBalance matcher with multiple accounts", async function () {
const [sender, receiver] = await ethers.getSigners();

Expand All @@ -130,18 +129,20 @@ describe("Internal test suite of hardhat-waffle's test project", function () {
});

it("should support the properAddress matcher", async function () {
expect('0x28FAA621c3348823D6c6548981a19716bcDc740e').to.be.properAddress;
expect('foobar').not.to.be.properAddress;
expect("0x28FAA621c3348823D6c6548981a19716bcDc740e").to.be.properAddress;
expect("foobar").not.to.be.properAddress;
});

it("should support the properPrivateKey matcher", async function () {
expect('0x706618637b8ca922f6290ce1ecd4c31247e9ab75cf0530a0ac95c0332173d7c5').to.be.properPrivateKey;
expect('foobar').not.to.be.properPrivateKey;
expect(
"0x706618637b8ca922f6290ce1ecd4c31247e9ab75cf0530a0ac95c0332173d7c5"
).to.be.properPrivateKey;
expect("foobar").not.to.be.properPrivateKey;
});

it("should support the properHex matcher", async function () {
expect('0x70').to.be.properHex(2);
expect('foobar').not.to.be.properHex(2);
expect("0x70").to.be.properHex(2);
expect("foobar").not.to.be.properHex(2);
});
});
});

0 comments on commit 9734866

Please sign in to comment.