Skip to content

Commit

Permalink
fix: api integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
darcyYe committed Nov 8, 2024
1 parent d70989d commit 5bdd23b
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,17 @@ describe('application secrets', () => {
it.each(Object.values(ApplicationType))(
'should or not to create application secret for %s applications per type',
async (type) => {
const application = await createApplication(
'application',
type,
cond(
const application = await createApplication('application', type, {
...cond(
type === ApplicationType.Protected && {
protectedAppMetadata: {
origin: 'https://example.com',
subDomain: randomString(),
},
}
)
);
),
...cond(type === ApplicationType.SAML && { isThirdParty: true }),
});
expect(application.secret).toMatch(new RegExp(`^${internalPrefix}`));

// Check the default secret
Expand Down

0 comments on commit 5bdd23b

Please sign in to comment.