Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
fix some styles in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwy3y3 committed Feb 20, 2019
1 parent 0bff468 commit 1d88e1e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions test/idp.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ describe('Identity providers', function() {
id: idpMapperId,
},
);
// check idp mapper deleted

// check idp mapper deleted
expect(idpMapperUpdated).to.be.null;

await this.kcAdminClient.identityProviders.del({
Expand Down
21 changes: 11 additions & 10 deletions test/users.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,7 @@ describe('Users', function() {
id: this.currentUser.id,
});
// currentRole will have an empty `attributes`, but role-mappings do not
expect(roles).to.deep.include(
omit(this.currentRole, 'attributes')
);
expect(roles).to.deep.include(omit(this.currentRole, 'attributes'));
});

it('del realm role-mappings from user', async () => {
Expand Down Expand Up @@ -385,9 +383,11 @@ describe('Users', function() {
});

it('should list user\'s federated identities and expect empty', async () => {
const federatedIdentities = await this.kcAdminClient.users.listFederatedIdentities({
id: this.currentUser.id,
});
const federatedIdentities = await this.kcAdminClient.users.listFederatedIdentities(
{
id: this.currentUser.id,
},
);
expect(federatedIdentities).to.be.eql([]);
});

Expand All @@ -412,11 +412,12 @@ describe('Users', function() {
federatedIdentityId: 'foobar',
});

const federatedIdentities = await this.kcAdminClient.users.listFederatedIdentities({
id: this.currentUser.id,
});
const federatedIdentities = await this.kcAdminClient.users.listFederatedIdentities(
{
id: this.currentUser.id,
},
);
expect(federatedIdentities).to.be.eql([]);
});
});

});

0 comments on commit 1d88e1e

Please sign in to comment.