Skip to content

Commit 7672b73

Browse files
committed
Update test file to CommonJS
1 parent b035706 commit 7672b73

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

test/extensions/expenditure-utils.js

+17-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
/* globals artifacts */
22

3-
import chai from "chai";
4-
import bnChai from "bn-chai";
5-
import { ethers } from "ethers";
6-
import { soliditySha3 } from "web3-utils";
7-
8-
import { UINT256_MAX, WAD, MINING_CYCLE_DURATION, CHALLENGE_RESPONSE_WINDOW_DURATION } from "../../helpers/constants";
9-
import { setupRandomColony, getMetaTransactionParameters } from "../../helpers/test-data-generator";
10-
import { checkErrorRevert, web3GetCode, makeReputationKey, makeReputationValue, getActiveRepCycle, forwardTime } from "../../helpers/test-helper";
11-
12-
import PatriciaTree from "../../packages/reputation-miner/patricia";
3+
const chai = require("chai");
4+
const bnChai = require("bn-chai");
5+
const { ethers } = require("ethers");
6+
const { soliditySha3 } = require("web3-utils");
7+
8+
const { UINT256_MAX, WAD, MINING_CYCLE_DURATION, CHALLENGE_RESPONSE_WINDOW_DURATION } = require("../../helpers/constants");
9+
const { setupRandomColony, getMetaTransactionParameters } = require("../../helpers/test-data-generator");
10+
const {
11+
checkErrorRevert,
12+
web3GetCode,
13+
makeReputationKey,
14+
makeReputationValue,
15+
getActiveRepCycle,
16+
forwardTime,
17+
} = require("../../helpers/test-helper");
18+
19+
const PatriciaTree = require("../../packages/reputation-miner/patricia");
1320

1421
const { expect } = chai;
1522
chai.use(bnChai(web3.utils.BN));

0 commit comments

Comments
 (0)