Browse Source

address feedback

Shelley Vohr 6 years ago
parent
commit
d5d76c56ed
1 changed files with 3 additions and 1 deletions
  1. 3 1
      spec/api-notification-dbus-spec.js

+ 3 - 1
spec/api-notification-dbus-spec.js

@@ -100,10 +100,12 @@ const skip = process.platform !== 'linux' ||
 
     it(`should call ${serviceName} to show notifications`, async () => {
       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 methodName = lastCall[1]
       expect(methodName).to.equal('Notify')
+
       let args = unmarshalDBusNotifyArgs(lastCall[2])
       expect(args).to.deep.equal({
         app_name: appName,