mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
test(core,import): rebalance database coverage
This commit is contained in:
1 parent
2887f1cb73
commit
187268d8a5
2 files changed
+112
-210
No files matched your search
@@ -13,13 +13,3 @@ test('空字符串内容在写库归一化前后应生成同一个去重 key', (
|
||||
|
||||
assert.equal(keyAfterPersist, keyBeforePersist)
|
||||
})
|
||||
|
||||
test('同秒同发送者但等长不同内容应生成不同去重 key', () => {
|
||||
const timestamp = 1710000000
|
||||
const senderPlatformId = 'user-1'
|
||||
|
||||
const firstKey = generateMessageKey(timestamp, senderPlatformId, '你好啊')
|
||||
const secondKey = generateMessageKey(timestamp, senderPlatformId, '再见呀')
|
||||
|
||||
assert.notEqual(firstKey, secondKey)
|
||||
})
|
||||
Reference in new issue
Block a user