refactor(schedule): derive marker section text type

This commit is contained in:
pku-xht
2026-08-07 21:04:09 +08:00
committed by Tianyi Cui
parent de3e0a5d1c
commit d8a85dcafd
4 changed files with 0 additions and 9 deletions

View File

@@ -107,7 +107,6 @@ function validateReading(
|| section === undefined
|| Object.keys(section).length !== 2
|| section.name !== SOURCE_NAME
|| typeof section.text !== 'string'
|| section.text !== blockText) {
fail('time-context source must carry only the exact snapshot text, not request authority')
}

View File

@@ -208,12 +208,6 @@ describe('time-context invariants', () => {
[{ name: 'time-context', text: reading() }],
/must contain exactly one text block/,
],
[
'non-string section text',
{ type: 'text', text: reading() },
[{ name: 'time-context', text: 7 }],
/must carry only the exact snapshot text/,
],
[
'an extra section field',
{ type: 'text', text: reading() },