From 734f57fc09b79e3fff664f9cdb7131353c48e708 Mon Sep 17 00:00:00 2001 From: "Pimm \"de Chinchilla\" Hogeling" Date: Tue, 10 Sep 2024 15:56:44 +0200 Subject: [PATCH] Fix test. --- tests/unit/resources/methods.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/resources/methods.test.ts b/tests/unit/resources/methods.test.ts index 3d9ac7fa..dff843a5 100644 --- a/tests/unit/resources/methods.test.ts +++ b/tests/unit/resources/methods.test.ts @@ -46,7 +46,7 @@ describe('methods', () => { }) .catch(err => { expect(err).toBeInstanceOf(ApiError); - expect(err.getMessage()).toEqual(error.detail); + expect(err.message).toEqual(error.detail); }); }); }); @@ -57,7 +57,7 @@ describe('methods', () => { return new Promise(resolve => { methods.get('foo', {}, (err: any, result) => { expect(err).toBeInstanceOf(ApiError); - expect(err.getMessage()).toEqual(error.detail); + expect(err.message).toEqual(error.detail); expect(result).toBeUndefined(); resolve(); });