From c4d3127a4ed8f83da0d99288daf101b6dc2c3c77 Mon Sep 17 00:00:00 2001 From: Saleel Date: Wed, 31 Jan 2024 17:57:15 +0530 Subject: [PATCH] chore: move test eml to circuits --- README.md | 2 +- {emls => packages/circuits/tests/emls}/test_twitter.eml | 0 packages/circuits/tests/twitter.test.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename {emls => packages/circuits/tests/emls}/test_twitter.eml (100%) diff --git a/README.md b/README.md index d5446e8..8c3d31a 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ There are helper functions in `@zk-email/helpers` package to download and decomp ```bash # CWD = packages/circuits/scripts -ts-node generate-proof.ts --email-file ../../../emls/test_twitter.eml --ethereum-address +ts-node generate-proof.ts --email-file ../tests/emls/test_twitter.eml --ethereum-address ``` This will generate input + witness using the given email file and Ethereum address, and prove using the generated zkey. diff --git a/emls/test_twitter.eml b/packages/circuits/tests/emls/test_twitter.eml similarity index 100% rename from emls/test_twitter.eml rename to packages/circuits/tests/emls/test_twitter.eml diff --git a/packages/circuits/tests/twitter.test.ts b/packages/circuits/tests/twitter.test.ts index d636194..ad594c3 100644 --- a/packages/circuits/tests/twitter.test.ts +++ b/packages/circuits/tests/twitter.test.ts @@ -20,7 +20,7 @@ describe("Twitter email test", function () { beforeAll(async () => { const rawEmail = fs.readFileSync( - path.join(__dirname, "../../../emls/test_twitter.eml"), + path.join(__dirname, "./emls/test_twitter.eml"), "utf8" ); dkimResult = await verifyDKIMSignature(rawEmail);