Skip to content

Commit ba3142f

Browse files
committed
Improve tests
1 parent 081be4c commit ba3142f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

__tests__/main.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,14 @@ test('5. compare errors test 1', () => {
129129
})
130130

131131
expect(comment).toMatch(/\*\*15 new errors added\*\*/)
132+
expect(comment).toMatch(/\*\*15 new errors added\*\*/)
132133

133134
})
134135

135-
test('6. escapeForMarkdown', () => {
136-
136+
test('6.1 escapeForMarkdown', () => {
137137
expect(escapeForMarkdown('|')).toEqual("\\|")
138+
})
138139

139-
})
140+
test('6.2 escapeForMarkdown', () => {
141+
expect(escapeForMarkdown("Type 'boolean' is not assignable to type 'string | number'.")).toEqual("Type 'boolean' is not assignable to type 'string \\| number'.")
142+
})

0 commit comments

Comments
 (0)