Add mock test for a 413 response from v1/challenge
This commit is contained in:
parent
2a55bfbef9
commit
9efb046a06
10 changed files with 194 additions and 59 deletions
|
@ -218,6 +218,15 @@ export class App extends EventEmitter {
|
|||
return super.emit(type, ...args);
|
||||
}
|
||||
|
||||
public async getPendingEventCount(event: string): Promise<number> {
|
||||
const window = await this.getWindow();
|
||||
const result = await window.evaluate(
|
||||
`window.SignalCI.getPendingEventCount(${JSON.stringify(event)})`
|
||||
);
|
||||
|
||||
return Number(result);
|
||||
}
|
||||
|
||||
//
|
||||
// Private
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue