Skip to content

Commit

Permalink
Fix path join on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmbourne committed Mar 5, 2020
1 parent 6617149 commit 19031c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/packageModules.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 19031c6

Please sign in to comment.