From f4991d2b287d72f085c7e78b58baf9b8c0cdf0a3 Mon Sep 17 00:00:00 2001 From: JounQin Date: Sun, 31 Jul 2022 19:17:54 +0800 Subject: [PATCH] test: add one more test case --- .github/workflows/size-limit.yml | 2 +- test/decoding.spec.ts | 3 +++ test/encoding.spec.ts | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml index 4be373e..c70a240 100644 --- a/.github/workflows/size-limit.yml +++ b/.github/workflows/size-limit.yml @@ -25,7 +25,7 @@ jobs: - name: Install Dependencies run: pnpm i - - name: Build MiniApp entry + - name: Build MiniApp Entry run: pnpm mini-app - uses: andresz1/size-limit-action@v1 diff --git a/test/decoding.spec.ts b/test/decoding.spec.ts index c75e0b1..3b3e2f1 100644 --- a/test/decoding.spec.ts +++ b/test/decoding.spec.ts @@ -8,4 +8,7 @@ test('it should just work', () => { expect(decode('5bCP6aO85by+')).toBe('小飼弾') expect(decodeUrl('5bCP6aO85by-')).toBe('小飼弾') + + expect(decode('8KCut+mHjuWutg==')).toBe('𠮷野家') + expect(decodeUrl('8KCut-mHjuWutg')).toBe('𠮷野家') }) diff --git a/test/encoding.spec.ts b/test/encoding.spec.ts index 1b66d3f..b7e44fe 100644 --- a/test/encoding.spec.ts +++ b/test/encoding.spec.ts @@ -8,4 +8,7 @@ test('it should just work', () => { expect(encode('小飼弾')).toBe('5bCP6aO85by+') expect(encodeUrl('小飼弾')).toBe('5bCP6aO85by-') + + expect(encode('𠮷野家')).toBe('8KCut+mHjuWutg==') + expect(encodeUrl('𠮷野家')).toBe('8KCut-mHjuWutg') })