Skip to content

Commit

Permalink
test: fix test data path
Browse files Browse the repository at this point in the history
  • Loading branch information
tokebe committed Oct 20, 2023
1 parent 164d505 commit 9871f66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __test__/unittest/template_query_builder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe("test query builder class", () => {
});

test("if _getUrl nunjucks templates are filled", () => {
const edge_path = path.resolve(__dirname, "data/multi_input_edge.json");
const edge_path = path.resolve(__dirname, "../data/multi_input_edge.json");
const edge = JSON.parse(fs.readFileSync(edge_path, { encoding: "utf8" }));
const builder = new qb(edge);
const res = builder._getUrl(edge, {
Expand Down Expand Up @@ -212,7 +212,7 @@ describe("test query builder class", () => {
});

test("if _getParams nunjucks templates are filled", () => {
const edge_path = path.resolve(__dirname, "data/multi_input_edge.json");
const edge_path = path.resolve(__dirname, "../data/multi_input_edge.json");
const edge = JSON.parse(fs.readFileSync(edge_path, { encoding: "utf8" }));

const builder = new qb(edge);
Expand Down Expand Up @@ -291,7 +291,7 @@ describe("test query builder class", () => {
});

test("if nunjucks _getRequestBody templates are filled", () => {
const edge_path = path.resolve(__dirname, "data/multi_input_edge.json");
const edge_path = path.resolve(__dirname, "../data/multi_input_edge.json");
const edge = JSON.parse(fs.readFileSync(edge_path, { encoding: "utf8" }));

const builder = new qb(edge);
Expand Down

0 comments on commit 9871f66

Please sign in to comment.