mirror of
https://github.com/yibaiba/hideck.git
synced 2026-12-05 16:02:17 +00:00
15 lines
386 B
TypeScript
15 lines
386 B
TypeScript
import assert from 'node:assert/strict'
|
|
import test from 'node:test'
|
|
import { maskSavedWeComURLs } from '../src/stores/settings'
|
|
|
|
test('masks every persisted WeCom URL and removes empty rows', () => {
|
|
assert.deepEqual(
|
|
maskSavedWeComURLs([
|
|
'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=first',
|
|
' ',
|
|
'********'
|
|
]),
|
|
['********', '********']
|
|
)
|
|
})
|