From ee7b7579ea2b1e95a31a037ec13ae70f39b8e30c Mon Sep 17 00:00:00 2001 From: lonerapier Date: Wed, 11 Sep 2024 21:37:12 +0530 Subject: [PATCH] fix tests --- circuits/test/http/codegen.test.ts | 4 ++-- circuits/test/json/extractor/extractor.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/circuits/test/http/codegen.test.ts b/circuits/test/http/codegen.test.ts index 496176a..d46ec48 100644 --- a/circuits/test/http/codegen.test.ts +++ b/circuits/test/http/codegen.test.ts @@ -4,7 +4,7 @@ import { spawn } from "child_process"; import { readFileSync } from "fs"; function readLockFile(filename: string): T { - const filePath = join(__dirname, "..", "..", "..", "examples", "lockfile", filename); + const filePath = join(__dirname, "..", "..", "..", "examples", "http", "lockfile", filename); const jsonString = readFileSync(filePath, 'utf-8'); const jsonData = JSON.parse(jsonString); return jsonData; @@ -43,7 +43,7 @@ interface Response { function executeCodegen(inputFilename: string, outputFilename: string) { return new Promise((resolve, reject) => { - const inputPath = join(__dirname, "..", "..", "..", "examples", "lockfile", inputFilename); + const inputPath = join(__dirname, "..", "..", "..", "examples", "http", "lockfile", inputFilename); const codegen = spawn("cargo", ["run", "http", "--lockfile", inputPath, "--output-filename", outputFilename]); diff --git a/circuits/test/json/extractor/extractor.test.ts b/circuits/test/json/extractor/extractor.test.ts index aa0426a..9b9b6b3 100644 --- a/circuits/test/json/extractor/extractor.test.ts +++ b/circuits/test/json/extractor/extractor.test.ts @@ -5,7 +5,7 @@ import { spawn } from "child_process"; function executeCodegen(inputFilename: string, outputFilename: string) { return new Promise((resolve, reject) => { - const inputPath = join(__dirname, "..", "..", "..", "..", "examples", "extractor", inputFilename); + const inputPath = join(__dirname, "..", "..", "..", "..", "examples", "json", "lockfile", inputFilename); const codegen = spawn("cargo", ["run", "json", "--template", inputPath, "--output-filename", outputFilename]);