mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 07:51:56 +03:00
8 lines
342 B
TypeScript
8 lines
342 B
TypeScript
|
import type { Page } from '@playwright/test'
|
||
|
import * as lsTypes from 'ydoc-shared/languageServerTypes/suggestions'
|
||
|
|
||
|
/** Add an entry to the suggestion database. */
|
||
|
export async function mockSuggestion(page: Page, update: lsTypes.SuggestionEntry) {
|
||
|
await page.evaluate(({ update }) => (window as any)._mockSuggestion(update), { update })
|
||
|
}
|