2
0
mirror of https://github.com/thumbsup/thumbsup synced 2024-11-07 15:20:26 +00:00

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

This commit is contained in:
Romain 2018-06-11 23:51:33 +02:00
parent 383f77e0d4
commit be0ee25c64

View File

@ -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'),