@virtualstate/app-history
Version:
Native JavaScript [app-history](https://github.com/WICG/app-history) implementation
16 lines (14 loc) • 474 B
text/typescript
/* c8 ignore start */
import {AppHistoryAssertFn, assertAppHistory} from "./app-history";
if (typeof appHistory !== "undefined") {
try {
const input = () => appHistory;
const fn: AppHistoryAssertFn = await assertAppHistory(input);
fn(input);
console.log("PASS assertAppHistory:scope:new AppHistory");
} catch (error) {
console.log("FAIL assertAppHistory:scope:new AppHistory");
throw error;
}
}
export default 1;