test(index): don’t run the invalid filename test on macOS

pull/108/head
Romain 6 years ago
parent 383f77e0d4
commit be0ee25c64

@ -1,6 +1,7 @@
const fs = require('fs')
const glob = require('../../../src/components/index/glob')
const { sep } = require('path')
const os = require('os')
const should = require('should/as-function')
const tmp = require('tmp')
@ -119,7 +120,11 @@ describe('Index: glob', function () {
})
})
it('ignores invalid file names', (done) => {
it('ignores invalid file names', function (done) {
if (os.platform() === 'darwin') {
// the invalid filename generates a system error on macOS
return this.skip()
}
const tmpdir = tmp.dirSync({ unsafeCleanup: true })
const filenames = [
Buffer.from('file1a.jpg'),

Loading…
Cancel
Save