chore: 项目基线(基于 WeKnora 定制版,整理文件忽略规则)
This commit is contained in:
commit
9097ee699d
5769 files changed
+1446466
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import test from 'node:test'
|
||||
import { rewindSkipMessage } from './rewindNotice'
|
||||
|
||||
const t = (key: string) => key
|
||||
|
||||
test('NO_SANDBOX maps to skipNoSandbox', () => {
|
||||
assert.equal(rewindSkipMessage('NO_SANDBOX', t), 'chat.rewind.skipNoSandbox')
|
||||
})
|
||||
|
||||
test('NO_CHECKPOINT maps to skipNoCheckpoint', () => {
|
||||
assert.equal(rewindSkipMessage('NO_CHECKPOINT', t), 'chat.rewind.skipNoCheckpoint')
|
||||
})
|
||||
|
||||
// A replaced sandbox fail-closes with a 409 rather than truncating, so it
|
||||
// never arrives here as a skip reason.
|
||||
test('unknown code falls back to generic skipped copy', () => {
|
||||
assert.equal(rewindSkipMessage('WEIRD', t), 'chat.rewind.skipped')
|
||||
})
|
||||
|
||||
test('empty reason returns empty so the UI can skip the workspace notice', () => {
|
||||
assert.equal(rewindSkipMessage('', t), '')
|
||||
})
|
||||
Reference in new issue
Block a user