test(sanitization): migrate test to spec (#19186)

This commit is contained in:
Manu MA
2019-08-26 17:39:46 +02:00
committed by GitHub
parent f2cfdf1bad
commit c7b6c7d563
6 changed files with 47 additions and 143 deletions

View File

@ -104,7 +104,7 @@ export class Router implements ComponentInterface {
* Go back to previous page in the window.history.
*/
@Method()
back() {
back(): Promise<void> {
window.history.back();
return Promise.resolve(this.waitPromise);
}