Skip to content

Commit

Permalink
Remove contacts test no longer correct
Browse files Browse the repository at this point in the history
  • Loading branch information
hbriese committed Jul 14, 2023
1 parent 18d04f5 commit 319a12b
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions api/src/features/contacts/contacts.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,27 +104,6 @@ describe(ContactsService.name, () => {
expect(new Set(contacts)).toEqual(expectedContacts);
}));

it("includes user's accounts", () =>
asUser(user1, async () => {
const account = randomAddress();

const accountId = uuid1();
getUserCtx().accounts.push(accountId);
await db.query(
e.insert(e.Account, {
id: accountId,
address: account,
name: 'Test account',
implementation: account,
isActive: false,
salt: randomDeploySalt(),
}),
);

const contacts = await service.select({}, () => ({ address: true }));
expect(contacts.map((c) => c.address)).toEqual([account]);
}));

it("doesn't include other user's contacts", async () => {
await asUser(user1, () => upsertContact(user1Contact));

Expand Down

0 comments on commit 319a12b

Please sign in to comment.