clear errors on successful render

This commit is contained in:
Rich Harris
2018-10-16 15:59:57 -04:00
parent cb45bb0fbe
commit 64e5065aa5
5 changed files with 27 additions and 3 deletions

View File

@@ -58,7 +58,8 @@ export class AppRunner {
start: () => this.page.evaluate(() => start()),
prefetchRoutes: () => this.page.evaluate(() => prefetchRoutes()),
prefetch: (href: string) => this.page.evaluate((href: string) => prefetch(href), href),
goto: (href: string) => this.page.evaluate((href: string) => goto(href), href)
goto: (href: string) => this.page.evaluate((href: string) => goto(href), href),
title: () => this.page.$eval('h1', node => node.textContent)
};
}