Skip to content

Commit

Permalink
Merge pull request #636 from akgula/fix/componentHarness
Browse files Browse the repository at this point in the history
Add source as optional param to stub
  • Loading branch information
craigbeck authored May 20, 2024
2 parents 37e4136 + 1c27ca9 commit ce75f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test-utils/ComponentHarness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class ComponentHarness extends EventEmitter {
* {is: 'dialog:buttons', source: '<button>OK</button>'}
* );
*/
stub(...args: Array<string | { is: string }>) {
stub(...args: Array<string | { is: string, source?: string }>) {
for (let i = 0; i < args.length; i++) {
// eslint-disable-next-line prefer-rest-params
const arg = arguments[i];
Expand Down

0 comments on commit ce75f1e

Please sign in to comment.