-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: apply ory-prettier-styles to cypress tests (ory#2179)
- Loading branch information
Showing
21 changed files
with
557 additions
and
542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import { prng } from '../../helpers'; | ||
import { prng } from '../../helpers' | ||
|
||
describe('The Clients Admin Interface', function() { | ||
const nc = () => ({ | ||
scope: 'foo openid offline_access', | ||
grant_types: ['client_credentials'] | ||
}); | ||
}) | ||
|
||
it('should return client_secret with length 26 for newly created clients without client_secret specified', function() { | ||
const client = nc(); | ||
const client = nc() | ||
|
||
cy.request( | ||
'POST', | ||
Cypress.env('admin_url') + '/clients', | ||
JSON.stringify(client) | ||
).then(response => { | ||
console.log(response.body, client); | ||
expect(response.body.client_secret.length).to.equal(26); | ||
}); | ||
}); | ||
}); | ||
console.log(response.body, client) | ||
expect(response.body.client_secret.length).to.equal(26) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.