Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Guillaume DEWISME
CI
Commits
468a7947
Commit
468a7947
authored
2 weeks ago
by
Quentin Hamitouche
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Begin fixing tests
parent
0f5ba749
master
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
hardhat.config.js
hardhat.config.js
+2
-0
Voting.test.js
test/Voting.test.js
+2
-2
No files found.
hardhat.config.js
View file @
468a7947
...
...
@@ -2,6 +2,8 @@
* @type import('hardhat/config').HardhatUserConfig
*/
require
(
"@nomicfoundation/hardhat-ethers"
);
require
(
"@nomicfoundation/hardhat-chai-matchers"
);
module
.
exports
=
{
solidity
:
{
...
...
This diff is collapsed.
Click to expand it.
test/Voting.test.js
View file @
468a7947
const
{
expect
}
=
require
(
"chai"
);
const
{
ethers
}
=
require
(
"hardhat"
);
describe
(
"Contrat Voting"
,
function
()
{
let
voting
;
let
owner
;
...
...
@@ -14,8 +15,7 @@ describe("Contrat Voting", function () {
[
owner
,
voter1
,
voter2
,
voter3
,
nonVoter
]
=
await
ethers
.
getSigners
();
const
Voting
=
await
ethers
.
getContractFactory
(
"Voting"
);
voting
=
await
Voting
.
deploy
();
await
voting
.
deployed
();
voting
=
await
Voting
.
deploy
(
owner
);
});
describe
(
"Enregistrement des électeurs"
,
function
()
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment