From c8fdfd7dad5ff15ad6b8a5db0b58a230289ad01c Mon Sep 17 00:00:00 2001 From: SamAg19 Date: Wed, 11 Sep 2024 17:06:14 +0530 Subject: [PATCH] chore: test files linting fixes --- scenarios/scenarios.js | 2 +- test/AssignCollectionsRandomly.js | 2 +- test/BlockManager.js | 2 +- test/RandomNoManager.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scenarios/scenarios.js b/scenarios/scenarios.js index 17413ed1..2151cb8a 100644 --- a/scenarios/scenarios.js +++ b/scenarios/scenarios.js @@ -1,7 +1,7 @@ +const { assert } = require('chai'); const { getState, adhocCommit, adhocReveal, getData, adhocPropose, } = require('../test/helpers/utils'); -const { assert } = require('chai'); const { mineBlock } = require('../test/helpers/testHelpers'); const { COLLECTION_MODIFIER_ROLE, diff --git a/test/AssignCollectionsRandomly.js b/test/AssignCollectionsRandomly.js index 07a2c641..86390dcd 100644 --- a/test/AssignCollectionsRandomly.js +++ b/test/AssignCollectionsRandomly.js @@ -139,7 +139,7 @@ describe('AssignCollectionsRandomly', function () { // as a staker, you have to pass sorted values const data = await getData(signers[1]); const validLeafIdToBeDisputed = (data.seqAllotedCollections)[0]; - console.log(data.seqAllotedCollections) + console.log(data.seqAllotedCollections); console.log('Data Fetched'); const { sortedValues, diff --git a/test/BlockManager.js b/test/BlockManager.js index 33522bc5..f331d3cb 100644 --- a/test/BlockManager.js +++ b/test/BlockManager.js @@ -2,6 +2,7 @@ // @dev : above is a quick fix for this linting error // I couldnt understand what it meant, to solve it +const { assert, expect } = require('chai'); const { assertBNEqual, assertDeepEqual, @@ -9,7 +10,6 @@ const { mineToNextState, assertRevert, } = require('./helpers/testHelpers'); -const { assert, expect } = require('chai'); const { setupContracts } = require('./helpers/testSetup'); const { DEFAULT_ADMIN_ROLE_HASH, diff --git a/test/RandomNoManager.js b/test/RandomNoManager.js index cbe6cfd9..ee2ee04a 100644 --- a/test/RandomNoManager.js +++ b/test/RandomNoManager.js @@ -1,3 +1,4 @@ +const { assert } = require('chai'); const { assertBNEqual, mineToNextEpoch, @@ -5,7 +6,6 @@ const { assertRevert, assertBNNotEqual, } = require('./helpers/testHelpers'); -const { assert } = require('chai'); const { commit, reveal, propose } = require('./helpers/InternalEngine'); const { setupContracts } = require('./helpers/testSetup'); const { @@ -167,7 +167,7 @@ describe('RandomNoManager', function () { // Get Random no : Generic From Epoch const randomNo3 = await randomNoManager.getGenericRandomNumber(epoch); const seed3 = await randomNoManager.secrets(epoch); - const salt3 = "0x0000000000000000000000000000000000000000000000000000000000000000"; + const salt3 = '0x0000000000000000000000000000000000000000000000000000000000000000'; const locallyCalculatedRandomNo3 = await prngHash(seed3, salt3); assertBNEqual(randomNo3, toBigNumber(locallyCalculatedRandomNo3)); assertBNNotEqual(randomNo3, randomNo);