From 820c20af806ba2b43c90d09dd9ffe7ca7b930fe2 Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 16 Jun 2022 14:00:09 +0800 Subject: [PATCH] Fix windows tests (#12840) Co-authored-by: nurikk --- test/bridge.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/bridge.test.js b/test/bridge.test.js index a19f54ae..56377a36 100644 --- a/test/bridge.test.js +++ b/test/bridge.test.js @@ -1022,8 +1022,8 @@ describe('Bridge', () => { expect(zigbeeHerdsman.backup).toHaveBeenCalledTimes(1); expect(mockJSZipFile).toHaveBeenCalledTimes(4); expect(mockJSZipFile).toHaveBeenNthCalledWith(1, 'configuration.yaml', expect.any(Object)); - expect(mockJSZipFile).toHaveBeenNthCalledWith(2, 'ext_converters/123/myfile.js', expect.any(Object)); - expect(mockJSZipFile).toHaveBeenNthCalledWith(3, 'ext_converters/afile.js', expect.any(Object)); + expect(mockJSZipFile).toHaveBeenNthCalledWith(2, path.join('ext_converters', '123','myfile.js'), expect.any(Object)); + expect(mockJSZipFile).toHaveBeenNthCalledWith(3, path.join('ext_converters', 'afile.js'), expect.any(Object)); expect(mockJSZipFile).toHaveBeenNthCalledWith(4, 'state.json', expect.any(Object)); expect(mockJSZipGenerateAsync).toHaveBeenCalledTimes(1); expect(mockJSZipGenerateAsync).toHaveBeenNthCalledWith(1, {type: 'base64'});