mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-04 20:56:44 -06:00
d7bb6c88d3
* convert Cypress tests to TypeScript this work was done by @lunaisnotaboy https://github.com/lunaisnotaboy for their fork https://github.com/cutiekey/cutiekey/pull/7 I just repacked their changes into a minimal set * fix call to `window` in cypress tests this error was spotted thanks to the TypeScript compiler: ``` support/commands.ts:33:12 - error TS2559: Type '(win: any) => void' has no properties in common with type 'Partial<Loggable & Timeoutable>'. 33 cy.window(win => { ~~~~~~~~ Found 1 error in support/commands.ts:33 ``` (again, @lunaisnotaboy did the actual work)
19 lines
321 B
TypeScript
19 lines
321 B
TypeScript
declare global {
|
|
namespace Cypress {
|
|
interface Chainable {
|
|
login(username: string, password: string): Chainable<void>;
|
|
|
|
registerUser(
|
|
username: string,
|
|
password: string,
|
|
isAdmin?: boolean
|
|
): Chainable<void>;
|
|
|
|
resetState(): Chainable<void>;
|
|
|
|
visitHome(): Chainable<void>;
|
|
}
|
|
}
|
|
}
|
|
|
|
export {}
|