Skip to content

Commit

Permalink
styles: format
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Oct 13, 2020
1 parent f102f95 commit e61a51d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions test/e2e/cypress/helpers/index.js
Expand Up @@ -51,7 +51,7 @@ module.exports = {
gen: {
email,
password,
identity: () => ({ email: email(), password: password() }),
identity: () => ({ email: email(), password: password() })
},
assertVerifiableAddress: assertVerifiableAddress,
assertRecoveryAddress: assertRecoveryAddress,
Expand All @@ -64,5 +64,5 @@ module.exports = {

// Adding 1+ second on top because MySQL doesn't do millisecs.
verifyLifespan: 5000 + 1050,
privilegedLifespan: 5000 + 1050,
privilegedLifespan: 5000 + 1050
}
20 changes: 10 additions & 10 deletions test/e2e/cypress/support/commands.js
Expand Up @@ -32,7 +32,7 @@ import {
MAIL_API,
parseHtml,
pollInterval,
privilegedLifespan,
privilegedLifespan
} from '../helpers'

const mergeFields = (form, fields) => {
Expand All @@ -55,7 +55,7 @@ Cypress.Commands.add(

cy.request({
url: APP_URL + '/self-service/registration/browser',
followRedirect: false,
followRedirect: false
})
.then(({ redirectedToUrl }) => {
expect(redirectedToUrl).to.contain(APP_URL + '/auth/registration?flow=')
Expand All @@ -75,10 +75,10 @@ Cypress.Commands.add(
body: mergeFields(form, {
...fields,
'traits.email': email,
password,
password
}),
url: form.action,
followRedirect: false,
followRedirect: false
})
})
.then((res) => {
Expand All @@ -100,7 +100,7 @@ Cypress.Commands.add(
rememberConsent = true,
acceptLogin = true,
acceptConsent = true,
expectSession = true,
expectSession = true
}) => {
cy.visit(APP_URL + '/auth/registration')

Expand Down Expand Up @@ -168,7 +168,7 @@ Cypress.Commands.add('login', ({ email, password, expectSession = true }) => {

cy.request({
url: APP_URL + '/self-service/login/browser',
followRedirect: false,
followRedirect: false
})
.then(({ redirectedToUrl }) => {
expect(redirectedToUrl).to.contain(APP_URL + '/auth/login?flow=')
Expand All @@ -182,7 +182,7 @@ Cypress.Commands.add('login', ({ email, password, expectSession = true }) => {
method: form.method,
body: mergeFields(form, { identifier: email, password }),
url: form.action,
followRedirect: false,
followRedirect: false
})
})
.then((res) => {
Expand All @@ -208,7 +208,7 @@ Cypress.Commands.add(
'reauth',
({
expect: { email },
type: { email: temail, password: tpassword } = {},
type: { email: temail, password: tpassword } = {}
}) => {
cy.url().should('include', '/auth/login')
cy.get('input[name="identifier"]').should('have.value', email)
Expand Down Expand Up @@ -272,7 +272,7 @@ Cypress.Commands.add('noSession', () =>
.request({
method: 'GET',
url: `${KRATOS_PUBLIC}/sessions/whoami`,
failOnStatusCode: false,
failOnStatusCode: false
})
.then((request) => {
expect(request.status).to.eq(401)
Expand All @@ -284,7 +284,7 @@ Cypress.Commands.add('getIdentityByEmail', ({ email }) =>
.request({
method: 'GET',
url: `${KRATOS_ADMIN}/identities`,
failOnStatusCode: false,
failOnStatusCode: false
})
.then((response) => {
expect(response.status).to.eq(200)
Expand Down
3 changes: 2 additions & 1 deletion test/schema/schema_test.go
Expand Up @@ -3,14 +3,15 @@ package schema
import (
"bytes"
"fmt"
"github.com/pkg/errors"
"io"
"io/ioutil"
"os"
"path/filepath"
"strings"
"testing"

"github.com/pkg/errors"

"github.com/ghodss/yaml"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down

0 comments on commit e61a51d

Please sign in to comment.