From 19031c66c328cf646702cc1c48f490fe2f9a785d Mon Sep 17 00:00:00 2001 From: James Bourne Date: Thu, 5 Mar 2020 16:03:45 +0000 Subject: [PATCH] Fix path join on Windows --- tests/packageModules.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/packageModules.test.js b/tests/packageModules.test.js index 25314af27..514a230ec 100644 --- a/tests/packageModules.test.js +++ b/tests/packageModules.test.js @@ -592,8 +592,8 @@ describe('packageModules', () => { BbPromise.all([ // Should copy an artifact per function into .serverless expect(fsMock.copyFileSync).callCount(2), - expect(fsMock.copyFileSync).to.be.calledWith('.webpack/func1.zip', expectedFunc1Destination), - expect(fsMock.copyFileSync).to.be.calledWith('.webpack/func2.zip', expectedFunc2Destination), + expect(fsMock.copyFileSync).to.be.calledWith(path.join('.webpack', 'func1.zip'), expectedFunc1Destination), + expect(fsMock.copyFileSync).to.be.calledWith(path.join('.webpack', 'func2.zip'), expectedFunc2Destination), // Should set package artifact locations expect(func1)