fix: verify receiver has no transaction records in insufficient funds test
Some checks failed
Deploy to Production / test (push) Failing after 9s
Some checks failed
Deploy to Production / test (push) Failing after 9s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -96,11 +96,15 @@ describe("Economy Integration Tests", () => {
|
|||||||
expect(sender!.balance).toBe(1000n);
|
expect(sender!.balance).toBe(1000n);
|
||||||
expect(receiver!.balance).toBe(500n);
|
expect(receiver!.balance).toBe(500n);
|
||||||
|
|
||||||
// Verify no transaction records were created
|
// Verify no transaction records were created for either party
|
||||||
const senderTxs = await DrizzleClient.query.transactions.findMany({
|
const senderTxs = await DrizzleClient.query.transactions.findMany({
|
||||||
where: eq(transactions.userId, BigInt(SENDER_ID)),
|
where: eq(transactions.userId, BigInt(SENDER_ID)),
|
||||||
});
|
});
|
||||||
|
const receiverTxs = await DrizzleClient.query.transactions.findMany({
|
||||||
|
where: eq(transactions.userId, BigInt(RECEIVER_ID)),
|
||||||
|
});
|
||||||
expect(senderTxs.length).toBe(0);
|
expect(senderTxs.length).toBe(0);
|
||||||
|
expect(receiverTxs.length).toBe(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should reject a self-transfer", async () => {
|
it("should reject a self-transfer", async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user