mirror of
https://github.com/zhigang1992/wallet.git
synced 2026-04-29 13:15:32 +08:00
fix(ordinals): improved check, all_inscrptions first
This commit is contained in:
committed by
Mark Hendrickson
parent
1f49ad248d
commit
420d136df0
21
tests/specs/ordinals/ordinals.spec.ts
Normal file
21
tests/specs/ordinals/ordinals.spec.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { test } from '@playwright/test';
|
||||
|
||||
import { getNumberOfInscriptionOnUtxo } from '@app/query/bitcoin/ordinals/ordinals-aware-utxo.query';
|
||||
|
||||
test.describe(getNumberOfInscriptionOnUtxo.name, () => {
|
||||
test('should return 3 in case of 3 inscriptions', async () => {
|
||||
const resp = await getNumberOfInscriptionOnUtxo(
|
||||
'aa24aecb0e60afa43b646c5a61fee76aebdbbf85b8f85a4aa429f9d0c52c9623',
|
||||
0
|
||||
);
|
||||
test.expect(resp).toBe(3);
|
||||
});
|
||||
|
||||
test('should return 0 in case of this random address', async () => {
|
||||
const resp = await getNumberOfInscriptionOnUtxo(
|
||||
'75d11f43163ca0c3a1656e124a63bc08da267c0f8454aa5244ef7346839dc5d5',
|
||||
0
|
||||
);
|
||||
test.expect(resp).toBe(0);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user