diff --git a/apps/meteor/tests/unit/server/federation/Federation.spec.ts b/apps/meteor/tests/unit/server/federation/Federation.spec.ts index 053f8edd06f5..834040935b88 100644 --- a/apps/meteor/tests/unit/server/federation/Federation.spec.ts +++ b/apps/meteor/tests/unit/server/federation/Federation.spec.ts @@ -92,12 +92,12 @@ describe('Federation[Server] - Federation', () => { }); describe('#isAFederatedUsername()', () => { - it('should return true if the username is a federated username (includes at least one "@" and at least one ":"', async () => { - await expect(Federation.isAFederatedUsername('@user:domain.com')).to.eventually.be.true; + it('should return true if the username is a federated username (includes at least one "@" and at least one ":"', () => { + expect(Federation.isAFederatedUsername('@user:domain.com')).to.be.true; }); - it('should return false if the username is a federated username (does NOT includes at least one "@" and at least one ":"', async () => { - await expect(Federation.isAFederatedUsername('user:domain.com')).to.eventually.be.false; + it('should return false if the username is a federated username (does NOT includes at least one "@" and at least one ":"', () => { + expect(Federation.isAFederatedUsername('user:domain.com')).to.be.false; }); });