github
3356 of 3548 branches covered (94.59%)
Branch coverage included in aggregate %.
243 of 243 new or added lines in 35 files covered. (100.0%)
31205 of 32058 relevant lines covered (97.34%)
472.66 hits per line
1 |
import { ensure, isDefined } from 'tiny-types'; |
10✔ |
2 |
|
10✔ |
3 |
import { ModalDialog } from './ModalDialog'; |
10✔ |
4 |
|
10✔ |
5 |
/**
|
10✔ |
6 |
* `DismissedModalDialog` represents a {@apilink ModalDialog} that has been dismissed |
10✔ |
7 |
* via {@apilink ModalDialog.dismissNext}. |
10✔ |
8 |
* |
10✔ |
9 |
* ## Learn more |
10✔ |
10 |
* - {@apilink ModalDialog} |
10✔ |
11 |
* |
10✔ |
12 |
* @group Models |
10✔ |
13 |
*/ |
10✔ |
14 |
export class DismissedModalDialog extends ModalDialog { |
10✔ |
15 |
constructor(private readonly dialogMessage: string) { |
|
16 |
super(); |
39✔ |
17 |
ensure('dialogMessage', dialogMessage, isDefined()); |
39✔ |
18 |
} |
39✔ |
19 |
|
10✔ |
20 |
async isPresent(): Promise<boolean> { |
10✔ |
21 |
return true; |
× |
22 |
} |
× |
23 |
|
10✔ |
24 |
async message(): Promise<string> {
|
|
25 |
return this.dialogMessage; |
12✔ |
26 |
} |
12✔ |
27 |
} |
10✔ |