refactor: make name a prop on app (#17701)
Update app.name to be a property on app.
This commit is contained in:
parent
f2d41b7812
commit
8d83518f9a
15 changed files with 57 additions and 25 deletions
|
@ -20,14 +20,14 @@ const skip = process.platform !== 'linux' ||
|
|||
|
||||
(skip ? describe.skip : describe)('Notification module (dbus)', () => {
|
||||
let mock, Notification, getCalls, reset
|
||||
const realAppName = app.getName()
|
||||
const realAppName = app.name
|
||||
const realAppVersion = app.getVersion()
|
||||
const appName = 'api-notification-dbus-spec'
|
||||
const serviceName = 'org.freedesktop.Notifications'
|
||||
|
||||
before(async () => {
|
||||
// init app
|
||||
app.setName(appName)
|
||||
app.name = appName
|
||||
app.setDesktopName(`${appName}.desktop`)
|
||||
// init dbus
|
||||
const path = '/org/freedesktop/Notifications'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue