Skip to content

Commit 77c07f7

Browse files
committed
fix(tests): Properly load fixtures
1 parent 52148d8 commit 77c07f7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test/integration/silentpayment.spec.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import assert from 'assert';
33
import * as ecc from 'tiny-secp256k1';
44
import * as bitcoin from 'bitcoinjs-lib';
55
import { fromHex, toHex } from 'uint8array-tools';
6-
import * as fixtures from '../fixtures/p2sp.json';
6+
import fixtures from '../fixtures/p2sp.json';
77
import { hash160 } from '../../ts_src/crypto.js';
88
import {
99
calculateInputHashTweak,
@@ -487,11 +487,8 @@ function runReceiverCase(tc: Recipient) {
487487
assert.ok(scannedResult.has(x), `receiver: missing expected entry ${x}`);
488488
}
489489

490-
// ================================================================
491-
// ======================= mocha suite ==========================
492-
// ================================================================
493490
describe('BIP-352 Silent Payments — sender vectors', () => {
494-
const groups: TestCase[] = fixtures as TestCase[];
491+
const groups: TestCase[] = fixtures;
495492
let count = 0;
496493
for (const g of groups) {
497494
if (!g?.sending) continue;
@@ -535,7 +532,7 @@ describe('BIP-352 Silent Payments — sender vectors', () => {
535532
});
536533

537534
describe('BIP-352 Silent Payments — receiver vectors', () => {
538-
const groups: TestCase[] = fixtures as TestCase[];
535+
const groups : TestCase[]= fixtures;
539536
let count = 0;
540537
for (const g of groups) {
541538
if (!g?.receiving) continue;

0 commit comments

Comments
 (0)