From 4429158123e77385389a33c8e84ad30a4d0c4182 Mon Sep 17 00:00:00 2001 From: Yohe-Am <56622350+Yohe-Am@users.noreply.github.com> Date: Fri, 17 May 2024 02:01:24 +0000 Subject: [PATCH] fix: broken tests --- typegate/tests/rest/rest_test.ts | 4 ++-- typegate/tests/simple/simple_test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/typegate/tests/rest/rest_test.ts b/typegate/tests/rest/rest_test.ts index c3f5d37d0d..3f86df6fb4 100644 --- a/typegate/tests/rest/rest_test.ts +++ b/typegate/tests/rest/rest_test.ts @@ -143,8 +143,8 @@ Meta.test("Rest queries in Deno", async (t) => { .withVars({ badField: {} }) .expectBody((res) => { assertStringIncludes( - res["message"], - 'missing variable "obj" value', + res["error"], + "variable not found: $obj", ); }) .on(e); diff --git a/typegate/tests/simple/simple_test.ts b/typegate/tests/simple/simple_test.ts index 9d5422e5ef..fb3519ec26 100644 --- a/typegate/tests/simple/simple_test.ts +++ b/typegate/tests/simple/simple_test.ts @@ -47,7 +47,7 @@ Meta.test("Simple graph", async (t) => { rec(nested: { arg: $val }) } ` - .expectErrorContains("missing variable") + .expectErrorContains("variable not found") .on(e); });