feat(image-stream): Support .bin image extension (#1750)

This adds support for selecting images with a `.bin` file extension.

Change-Type: minor
Closes #1739
This commit is contained in:
Jonas Hermsmeier 2017-10-03 18:13:02 +02:00 committed by GitHub
parent cb7117a36b
commit 3147a93ca6
2 changed files with 5 additions and 1 deletions

View File

@ -53,6 +53,10 @@ module.exports = [
extension: 'iso',
type: 'image'
},
{
extension: 'bin',
type: 'image'
},
{
extension: 'dsk',
type: 'image'

View File

@ -31,7 +31,7 @@ describe('Shared: SupportedFormats', function () {
describe('.getNonCompressedExtensions()', function () {
it('should return the supported non compressed extensions', function () {
const extensions = supportedFormats.getNonCompressedExtensions()
m.chai.expect(extensions).to.deep.equal([ 'img', 'iso', 'dsk', 'hddimg', 'raw', 'dmg', 'sdcard', 'rpi-sdimg' ])
m.chai.expect(extensions).to.deep.equal([ 'img', 'iso', 'bin', 'dsk', 'hddimg', 'raw', 'dmg', 'sdcard', 'rpi-sdimg' ])
})
})