Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #52 from belemaire/fix-tests
Browse files Browse the repository at this point in the history
test: Fix some tests
  • Loading branch information
bengourley committed Feb 10, 2020
2 parents 8d177c0 + 201bcec commit 4618ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test('multiple uploads', () => {
minifiedFile: payload.minifiedFile.path,
sourceMap: path.basename(payload.sourceMap.path)
})
}, []).sort((a, b) => a.minifiedUrl > b.minifiedUrl)
}, []).sort((a, b) => (a.minifiedUrl > b.minifiedUrl) ? 1 : -1)

expect(uploads).toEqual([
{
Expand Down Expand Up @@ -107,7 +107,7 @@ test('multiple uploads (resolving relative source paths inside map)', () => {
sourceMap: path.basename(payload.sourceMap.path),
sourceMapData: payload.sourceMapData
})
}, []).sort((a, b) => a.minifiedUrl > b.minifiedUrl)
}, []).sort((a, b) => (a.minifiedUrl > b.minifiedUrl) ? 1 : -1)

const orderedSourceMapContent = uploads.map(u => {
const data = u.sourceMapData
Expand Down

0 comments on commit 4618ca6

Please sign in to comment.