Skip to content

Commit

Permalink
chore: test files linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SamAg19 committed Sep 11, 2024
1 parent 35eef53 commit c8fdfd7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scenarios/scenarios.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion test/AssignCollectionsRandomly.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion test/BlockManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
// @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,
mineToNextEpoch,
mineToNextState,
assertRevert,
} = require('./helpers/testHelpers');
const { assert, expect } = require('chai');
const { setupContracts } = require('./helpers/testSetup');
const {
DEFAULT_ADMIN_ROLE_HASH,
Expand Down
4 changes: 2 additions & 2 deletions test/RandomNoManager.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const { assert } = require('chai');
const {
assertBNEqual,
mineToNextEpoch,
mineToNextState,
assertRevert,
assertBNNotEqual,
} = require('./helpers/testHelpers');
const { assert } = require('chai');
const { commit, reveal, propose } = require('./helpers/InternalEngine');
const { setupContracts } = require('./helpers/testSetup');
const {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c8fdfd7

Please sign in to comment.