Skip to content

Commit

Permalink
test: add one more test case
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Jul 31, 2022
1 parent 9b78add commit f4991d2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions test/decoding.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('𠮷野家')
})
3 changes: 3 additions & 0 deletions test/encoding.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})

0 comments on commit f4991d2

Please sign in to comment.