docs(tests): clarify workspace and legacy model test coverage
This commit is contained in:
@@ -130,7 +130,7 @@ test("renaming reads the latest version and preserves description and content",
|
||||
assert.equal(renamed.version, 8);
|
||||
});
|
||||
|
||||
// 空白或超过 100 字符的标题在请求前拒绝;用 assert.fail 确保没有任何 API 调用。
|
||||
// 空白和101个“字”(UTF-8共303字节)在请求前拒绝;这是300字节上限样本,不是任意文本100字符上限。
|
||||
test("rename rejects empty or oversized names without any API calls", async () => {
|
||||
for (const name of [" ", "字".repeat(101)]) {
|
||||
await assert.rejects(renameBoard(() => assert.fail("unexpected API call"), "space", "board", name), /invalid_title/);
|
||||
|
||||
Reference in New Issue
Block a user