mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-24 11:46:31 +00:00
fix(test): Sort compressed extensions before comparing
This commit is contained in:
parent
254b482651
commit
a541c863be
@ -23,8 +23,8 @@ const supportedFormats = require('../../lib/shared/supported-formats')
|
|||||||
describe('Shared: SupportedFormats', function () {
|
describe('Shared: SupportedFormats', function () {
|
||||||
describe('.getCompressedExtensions()', function () {
|
describe('.getCompressedExtensions()', function () {
|
||||||
it('should return the supported compressed extensions', function () {
|
it('should return the supported compressed extensions', function () {
|
||||||
const extensions = supportedFormats.getCompressedExtensions()
|
const extensions = supportedFormats.getCompressedExtensions().sort()
|
||||||
m.chai.expect(extensions).to.deep.equal([ 'gz', 'bz2', 'xz' ])
|
m.chai.expect(extensions).to.deep.equal([ 'bz2', 'gz', 'xz' ].sort())
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user