Skip to content

Commit 60dc3a4

Browse files
committed
test: update test case message
1 parent 4fe7522 commit 60dc3a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/bip371.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('toXOnly', () => {
1515
assert.deepStrictEqual(result, pubKey.slice(1, 33)); // Expect the sliced array
1616
});
1717

18-
it('should throw an error if the pubKey length is less than 32', () => {
18+
it('should return the key if the pubKey length is less than 32', () => {
1919
const pubKey = new Uint8Array(31).fill(1); // Example invalid public key
2020
const result = toXOnly(pubKey);
2121
assert.deepStrictEqual(result, pubKey.slice(1, 33)); // Expect the sliced array

0 commit comments

Comments
 (0)