persona-community-5/.pnpm-store/v3/files/6f/06fc4f6e844658400ccb28baa821af92a32a4abd5074da367a87205a418cb5cd4fea0bfbaea58409482434e98aae4ccdc0a2eac70dc47b31a5f1be207b7d0d
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

44 lines
1.1 KiB
Plaintext

import util = require("./testUtil");
suite('YAML Syntax', () => {
suite('Warnings for tab symbols', () => {
test('test 001', function () {
testErrors(
"schemas:\n" +
"\tsch1:\n",
[
{
line: 1,
column: 0,
message: "Using tabs can lead to unpredictable results",
isWarning: true
}
]
);
});
test('test 002', function () {
testErrors(
"level0:\n" +
" level1:\n" +
" level2:\n" +
" \t level3:\n",
[
{
line: 3,
column: 2,
message: "Using tabs can lead to unpredictable results",
isWarning: true
}
]
);
});
});
});
function testErrors(input:string,expectedErrors: util.TestError[]) {
util.testErrors(input, expectedErrors);
}