From 9693ac39cdf10858a3a27c0acb86f099fa2871e7 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Tue, 16 Jul 2024 19:44:16 +0200 Subject: [PATCH] fix: substring --- src/version.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/version.test.ts b/src/version.test.ts index 5f78f6e..2d4a2e8 100644 --- a/src/version.test.ts +++ b/src/version.test.ts @@ -57,8 +57,6 @@ describe('versionInfo', () => { expect(coreInfoSpy).toHaveBeenCalledTimes(2); expect(coreInfoSpy).toHaveBeenCalledWith('==> Running version unsupported'); - expect(coreInfoSpy).toHaveBeenCalledWith( - 'Could not pull latest version information: SyntaxError: Unexpected token M in JSON at position 0', - ); + expect(coreInfoSpy).toHaveBeenCalledWith(expect.stringContaining('Could not pull latest version information')); }); });