From 90172071fac514c25474823630201c0969c84ee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 23 Aug 2022 12:20:42 +0100 Subject: [PATCH] Add test for setting deployer address --- test/Contribution.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/Contribution.js b/test/Contribution.js index cb3fae2..241caf8 100644 --- a/test/Contribution.js +++ b/test/Contribution.js @@ -28,6 +28,11 @@ describe("Contribution contract", async function () { it("sets the data migration flag", async function () { expect(await Contribution.migrationDone()).to.equal(false); }); + + it("sets the deployer address", async function () { + expect(await Contribution.deployer()).to.equal(owner.address); + expect(await Contribution.deployer()).to.not.equal(addr1.address); + }); }); describe("Data migration", function () {