发布 0.2.1 并完善工具边界与安全性
This commit is contained in:
@@ -50,6 +50,9 @@ describe('UTF-8 and Base64', () => {
|
||||
it('rejects invalid Base64', () => {
|
||||
expect(() => decodeBase64('abcde')).toThrow('长度')
|
||||
expect(() => decodeBase64('ab*c')).toThrow('无效')
|
||||
expect(() => decodeBase64('TQ=')).toThrow('填充长度')
|
||||
expect(() => decodeBase64('TWE==')).toThrow('填充长度')
|
||||
expect(() => decodeBase64('T=Q=')).toThrow('填充位置')
|
||||
expect(() => decodeBase64('Zh==')).toThrow('无效')
|
||||
expect(() => decodeBase64('Zm9=')).toThrow('无效')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user