mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 18:02:47 +08:00
style: add ban-ts-comment rule (#2738)
This commit is contained in:
@@ -116,7 +116,6 @@ export async function loginUser(
|
||||
}
|
||||
) {
|
||||
await page.evaluate(async token => {
|
||||
// @ts-ignore
|
||||
globalThis.setLogin(token);
|
||||
}, token);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@ test('should have page0', async ({ page }) => {
|
||||
await page.goto('http://localhost:8080/_debug/init-page');
|
||||
await page.waitForSelector('v-line');
|
||||
const pageId = await page.evaluate(async () => {
|
||||
// @ts-ignore
|
||||
return globalThis.page.id;
|
||||
});
|
||||
expect(pageId).toBe('page0');
|
||||
|
||||
Reference in New Issue
Block a user