From 1d88e1e95b8117e25194d202de6d235f37ef566e Mon Sep 17 00:00:00 2001 From: william chang Date: Wed, 20 Feb 2019 13:04:29 +0800 Subject: [PATCH] fix some styles in tests --- test/idp.spec.ts | 4 ++-- test/users.spec.ts | 21 +++++++++++---------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/test/idp.spec.ts b/test/idp.spec.ts index 42112806..331faafa 100644 --- a/test/idp.spec.ts +++ b/test/idp.spec.ts @@ -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({ diff --git a/test/users.spec.ts b/test/users.spec.ts index 0bd6f686..9d260bb2 100644 --- a/test/users.spec.ts +++ b/test/users.spec.ts @@ -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 () => { @@ -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([]); }); @@ -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([]); }); }); - });