Add an accessor for the current activity type and write the simplest possible test.

This commit is contained in:
Charlie Hess 2016-05-03 15:51:31 -07:00
commit 12764a66ed
6 changed files with 29 additions and 9 deletions

View file

@ -89,6 +89,13 @@ describe('app module', function () {
})
})
describe('app.setUserActivity(type, userInfo)', function () {
it('sets the current activity', function () {
app.setUserActivity('com.electron.testActivity', {testData: '123'});
assert.equal(app.getCurrentActivityType(), 'com.electron.testActivity');
})
})
describe('app.importCertificate', function () {
if (process.platform !== 'linux')
return