Skip to content

Commit

Permalink
unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Mar 24, 2023
1 parent d258cf2 commit 3099777
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/meteor/tests/unit/server/federation/Federation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
});

Expand Down

0 comments on commit 3099777

Please sign in to comment.