Skip to content

Commit f133d3e

Browse files
committed
chore(tests): update tests
1 parent f031423 commit f133d3e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

test/suite/extension.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ describe("single line jsdoc comment", () => {
384384
)
385385
)
386386

387-
// TODO: needs new file
388387
describe(
389388
"when cursor is before comment",
390389
itHasCorrectOutputAndCursorPosition(
@@ -668,6 +667,11 @@ describe("single line jsdoc comment", () => {
668667

669668
describe("remove existing jsdoc", () => {
670669
describe("when it's alone on a line", () => {
670+
describe(
671+
"when cursor is before comment",
672+
itHasCorrectOutputAndCursorPosition("singleRemove.js", 1, 0, 0, 0)
673+
)
674+
671675
describe(
672676
"when cursor's inside",
673677
itHasCorrectOutputAndCursorPosition("singleRemove.js", 1, 20, 0, -1)
@@ -702,7 +706,7 @@ describe("remove existing jsdoc", () => {
702706
1,
703707
0,
704708
0,
705-
-3,
709+
-2,
706710
0,
707711
0
708712
)

test/suite/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ export const run = (
5454
try {
5555
// Run the mocha test
5656
return mocha.run((failures) => {
57-
log.error(`${failures} tests failed`)
57+
if (failures) {
58+
log.error(`${failures} tests failed`)
59+
}
5860

5961
if (DEBUG_TESTS) {
6062
log.info("files tested at this point", [...getTestedFiles()])

0 commit comments

Comments
 (0)