Call done instead of skip

This commit is contained in:
Kevin Sawicki 2017-02-07 10:16:09 -08:00
parent ee66776450
commit 683a758dab

View file

@ -505,9 +505,9 @@ describe('app module', function () {
}) })
it('fetches large icon', function (done) { it('fetches large icon', function (done) {
if (process.platform === 'darwin') { // macOS does not support large icons
return this.skip() // macOS does not support large icons if (process.platform === 'darwin') return done()
}
app.getFileIcon(iconPath, { size: 'large' }, function (err, icon) { app.getFileIcon(iconPath, { size: 'large' }, function (err, icon) {
const size = icon.getSize() const size = icon.getSize()
assert.equal(err, null) assert.equal(err, null)