From 0509986563e5be5f959147a7da11efd1ff9904f1 Mon Sep 17 00:00:00 2001 From: Daniel Lytkin Date: Sat, 14 Oct 2023 22:18:56 +0200 Subject: [PATCH] chore(nice-grpc-web): fix failing tests (#467) --- packages/nice-grpc-web/karma.conf.ts | 4 ++-- packages/nice-grpc-web/src/__tests__/unary.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nice-grpc-web/karma.conf.ts b/packages/nice-grpc-web/karma.conf.ts index 60c12d22..f46f92af 100644 --- a/packages/nice-grpc-web/karma.conf.ts +++ b/packages/nice-grpc-web/karma.conf.ts @@ -162,8 +162,8 @@ export default (config: Config & Record) => { karmaTypescriptConfig: { tsconfig: 'tsconfig.json', compilerOptions: { - target: 'ES2015', - lib: ['ES2015', 'DOM', 'DOM.Iterable'], + target: 'ES2018', + lib: ['ES2018', 'DOM', 'DOM.Iterable'], }, bundlerOptions: { constants: { diff --git a/packages/nice-grpc-web/src/__tests__/unary.ts b/packages/nice-grpc-web/src/__tests__/unary.ts index e677cec1..de8e839f 100644 --- a/packages/nice-grpc-web/src/__tests__/unary.ts +++ b/packages/nice-grpc-web/src/__tests__/unary.ts @@ -469,7 +469,7 @@ const environment = detect(); new ClientError( '/nice_grpc.test.Test2/TestUnary', Status.UNIMPLEMENTED, - '[object Object]', // this is a bug in grpc-js + 'The server does not implement the method /nice_grpc.test.Test2/TestUnary', ), ); });