Add an accessor for the current activity type and write the simplest possible test.
This commit is contained in:
parent
42768bcc2b
commit
12764a66ed
6 changed files with 29 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue