address feedback
This commit is contained in:
parent
9489401e7d
commit
d5d76c56ed
1 changed files with 3 additions and 1 deletions
|
@ -100,10 +100,12 @@ const skip = process.platform !== 'linux' ||
|
||||||
|
|
||||||
it(`should call ${serviceName} to show notifications`, async () => {
|
it(`should call ${serviceName} to show notifications`, async () => {
|
||||||
const calls = await getCalls()
|
const calls = await getCalls()
|
||||||
expect(calls.length).to.be.at.least(1)
|
expect(calls).to.be.an('array').of.lengthOf.at.least(1)
|
||||||
|
|
||||||
let lastCall = calls[calls.length - 1]
|
let lastCall = calls[calls.length - 1]
|
||||||
let methodName = lastCall[1]
|
let methodName = lastCall[1]
|
||||||
expect(methodName).to.equal('Notify')
|
expect(methodName).to.equal('Notify')
|
||||||
|
|
||||||
let args = unmarshalDBusNotifyArgs(lastCall[2])
|
let args = unmarshalDBusNotifyArgs(lastCall[2])
|
||||||
expect(args).to.deep.equal({
|
expect(args).to.deep.equal({
|
||||||
app_name: appName,
|
app_name: appName,
|
||||||
|
|
Loading…
Reference in a new issue