CI: add TS indentation check via esLint (#24810)
This commit is contained in:
parent
414ee51975
commit
208ce4e774
118 changed files with 457 additions and 489 deletions
|
|
@ -60,7 +60,7 @@ describe('Description Validation Logic', () => {
|
|||
try {
|
||||
validateDescriptionLength(invalidDescription)
|
||||
}
|
||||
catch (error) {
|
||||
catch (error) {
|
||||
expect((error as Error).message).toBe(expectedErrorMessage)
|
||||
}
|
||||
})
|
||||
|
|
@ -86,7 +86,7 @@ describe('Description Validation Logic', () => {
|
|||
expect(() => validateDescriptionLength(testDescription)).not.toThrow()
|
||||
expect(validateDescriptionLength(testDescription)).toBe(testDescription)
|
||||
}
|
||||
else {
|
||||
else {
|
||||
expect(() => validateDescriptionLength(testDescription)).toThrow(
|
||||
'Description cannot exceed 400 characters.',
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue