Migrate from flow to typescript

This commit is contained in:
SleepWalker
2019-12-07 13:28:52 +02:00
parent 85a535430e
commit d8d2df0702
267 changed files with 2806 additions and 3535 deletions

View File

@@ -1,3 +1,4 @@
/// <reference types="cypress" />
describe('/dev/applications - guest', () => {
it('should render login button', () => {
cy.visit('/dev/applications');

View File

@@ -1,10 +1,12 @@
/// <reference types="cypress" />
describe('/dev/applications - user', () => {
before(() => {
cy.login({ account: 'default' }).then(({ user }) => {
cy.visit('/dev/applications');
// remove all previousely added apps
cy.window().then(async ({ oauthApi }) => {
cy.window().then(async (/** @type {any} */ { oauthApi }) => {
const apps = await oauthApi.getAppsByUser(user.id);
await Promise.all(apps.map(app => oauthApi.delete(app.clientId)));