Skip to content

Commit

Permalink
feat: Use IntegrationInstance#defaultInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyfarrell committed Oct 17, 2020
1 parent a2a3e98 commit a52d75a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,11 @@ export class AsteriskInstance extends FixtureRunDirectory {
}
}

export function setupIntegrationAMITesting(tap, integrationInstance, defaultInstanceID) {
export function setupIntegrationAMITesting(tap, integrationInstance) {
const {Test} = tap;

Test.addAssert('checkAMIEvents', 2, async function ({instanceID, watch, expect, execute}, message, extra) {
const {ami} = integrationInstance[instanceID ?? defaultInstanceID];
const {ami} = integrationInstance[instanceID ?? 'defaultInstance'];

watch = [].concat(watch).map(eventName => eventName.toLowerCase());
const events = [];
Expand Down

0 comments on commit a52d75a

Please sign in to comment.