Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbo committed Dec 5, 2024
1 parent cacc5c4 commit e6a4e9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions test/api/unit/models/organization.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,14 +300,14 @@ describe('Organization model', () => {
});
});

describe('addRoleUser instance method', () => {
describe('addRoleUser instance method', () => {
it('should add a user to an org', async () => {
const user = await createUser();
const org = await orgFactory.create();
expect(org).to.respondTo('addRoleUser');
await org.addRoleUser(user);

await org.reload({ include: OrganizationRole })
await org.reload({ include: OrganizationRole });
const members = await OrganizationRole.forOrganization(org).findAll();
expect(members[0].User.id).to.be.equal(user.id);
expect(members[0].Role.name).to.be.equal('user');
Expand All @@ -320,10 +320,10 @@ describe('Organization model', () => {
expect(org).to.respondTo('addRoleUser');
await org.addRoleUser(user, manager);

await org.reload({ include: OrganizationRole })
await org.reload({ include: OrganizationRole });
const members = await OrganizationRole.forOrganization(org).findAll();
expect(members[0].User.id).to.be.equal(user.id);
expect(members[0].Role.name).to.be.equal(manager);
})
})
});
});
});
2 changes: 1 addition & 1 deletion test/api/unit/models/site.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ describe('Site model', () => {
});

describe('getOrgUsers instance method', () => {
it("returns users associated a Site", async () => {
it('returns users associated a Site', async () => {
const { site, user } = await createSiteUserOrg();
expect(site).to.respondTo('getOrgUsers');
const users = await site.getOrgUsers();
Expand Down

0 comments on commit e6a4e9e

Please sign in to comment.