diff --git a/test/utils.js b/test/utils.js index 70f70add..fc7a733f 100644 --- a/test/utils.js +++ b/test/utils.js @@ -122,7 +122,7 @@ test('should zip the app and create the app.nw file + log it', function (t) { }, { "src" : path.normalize("test/fixtures/nwapp/package.json"), "dest": path.normalize("package.json") - }], expected = _.pluck(files, 'dest'); + }], expected = _.pluck(files, 'dest').sort(); var _evt = new EventEmitter(); _evt.on('log', function (logging) { @@ -132,7 +132,7 @@ test('should zip the app and create the app.nw file + log it', function (t) { utils.generateZipFile(files, _evt).then(function(nwfile) { var unzipper = new DecompressZip(nwfile); unzipper.on('list', function (files) { - t.deepEqual(expected, files); + t.deepEqual(expected, files.sort()); }); unzipper.list(); });