Skip to content

Commit

Permalink
Do not use const in tests
Browse files Browse the repository at this point in the history
Sort array as `assert.deepEquals` seems to be picky about the order of things
  • Loading branch information
oncletom committed Sep 22, 2016
1 parent 5457abe commit 8b01781
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,13 @@ test('it should pack from preloaded contents', function(t){
return contentsBuffer;
})
.then(function(packageData){
const entries = new Zip(packageData)
var entries = new Zip(packageData)
.getEntries()
.map(function(entry){
return entry.entryName;
})
.sort(function(a, b){
return a.localeCompare(b);
});

t.deepEqual(entries, ['icon.png', 'manifest.json']);
Expand Down

0 comments on commit 8b01781

Please sign in to comment.