From 7b207aa1b67b4068fd8cb1afd7dc715584faed9d Mon Sep 17 00:00:00 2001 From: Charlie Hess Date: Tue, 3 May 2016 23:33:40 -0700 Subject: [PATCH] Don't run this spec on platforms where the method is unavailable. --- spec/api-app-spec.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/api-app-spec.js b/spec/api-app-spec.js index 809e5520b939..30df5361041c 100644 --- a/spec/api-app-spec.js +++ b/spec/api-app-spec.js @@ -7,6 +7,7 @@ const remote = require('electron').remote const app = remote.require('electron').app const BrowserWindow = remote.require('electron').BrowserWindow +const isCI = remote.getGlobal('isCi') describe('electron module', function () { it('allows old style require by default', function () { @@ -90,6 +91,10 @@ describe('app module', function () { }) describe('app.setUserActivity(type, userInfo)', function () { + if (isCI && process.platform !== 'darwin') { + return + } + it('sets the current activity', function () { app.setUserActivity('com.electron.testActivity', {testData: '123'}); assert.equal(app.getCurrentActivityType(), 'com.electron.testActivity');