From cd638dbb13c1779b78017e5af95a26fd5bab3200 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 22 Mar 2022 22:34:07 +0100 Subject: [PATCH] Adapt test code to the free functions --- packages/encoding/src/bech32.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/encoding/src/bech32.spec.ts b/packages/encoding/src/bech32.spec.ts index 39194cfd..bf3234e1 100644 --- a/packages/encoding/src/bech32.spec.ts +++ b/packages/encoding/src/bech32.spec.ts @@ -1,12 +1,12 @@ import { fromBech32, toBech32 } from "./bech32"; import { fromHex } from "./hex"; -describe("Bech32", () => { +describe("bech32", () => { // test data generate using https://github.com/nym-zone/bech32 // bech32 -e -h eth 9d4e856e572e442f0a4b2763e72d08a0e99d8ded const ethAddressRaw = fromHex("9d4e856e572e442f0a4b2763e72d08a0e99d8ded"); - describe("encode", () => { + describe("toBech32", () => { it("works", () => { expect(toBech32("eth", ethAddressRaw)).toEqual("eth1n48g2mjh9ezz7zjtya37wtgg5r5emr0drkwlgw"); }); @@ -44,7 +44,7 @@ describe("Bech32", () => { }); }); - describe("decode", () => { + describe("fromBech32", () => { it("works", () => { expect(fromBech32("eth1n48g2mjh9ezz7zjtya37wtgg5r5emr0drkwlgw")).toEqual({ prefix: "eth",