mirror of
https://github.com/arnaucube/miksi-core.git
synced 2026-02-07 03:26:41 +01:00
Separate builds for prod & tests for faster tests
This commit is contained in:
@@ -13,11 +13,11 @@ describe("deposit test", function () {
|
||||
|
||||
it("Test Deposit", async () => {
|
||||
const circuit = await tester(
|
||||
path.join(__dirname, "../../circuits", "deposit.circom"),
|
||||
path.join(__dirname, "main", "deposit.circom"),
|
||||
{reduceConstraints: false}
|
||||
);
|
||||
|
||||
const nLevels = 17;
|
||||
const nLevels = 4;
|
||||
const secret = "1234567890";
|
||||
|
||||
const coinCode = "0";
|
||||
|
||||
3
test/circuits/main/deposit.circom
Normal file
3
test/circuits/main/deposit.circom
Normal file
@@ -0,0 +1,3 @@
|
||||
include "../../../circuits/deposit.circom";
|
||||
|
||||
component main = Deposit(4);
|
||||
3
test/circuits/main/withdraw.circom
Normal file
3
test/circuits/main/withdraw.circom
Normal file
@@ -0,0 +1,3 @@
|
||||
include "../../../circuits/withdraw.circom";
|
||||
|
||||
component main = Withdraw(4);
|
||||
@@ -13,11 +13,11 @@ describe("withdraw test", function () {
|
||||
|
||||
it("Test Withdraw", async () => {
|
||||
const circuit = await tester(
|
||||
path.join(__dirname, "../../circuits", "withdraw.circom"),
|
||||
path.join(__dirname, "main", "withdraw.circom"),
|
||||
{reduceConstraints: false}
|
||||
);
|
||||
|
||||
const nLevels = 17;
|
||||
const nLevels = 4;
|
||||
const secret = "1234567890";
|
||||
|
||||
const coinCode = "0";
|
||||
|
||||
Reference in New Issue
Block a user