Browse Source

Call done instead of skip

Kevin Sawicki 8 years ago
parent
commit
683a758dab
1 changed files with 3 additions and 3 deletions
  1. 3 3
      spec/api-app-spec.js

+ 3 - 3
spec/api-app-spec.js

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