From 16de4efaf7f392c6cf584144186ca3760e9567a2 Mon Sep 17 00:00:00 2001 From: kkopitehong Date: Mon, 19 Feb 2024 17:43:26 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=BF=AE=E6=AD=A3=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/test/diagnostics.test.ts | 1 + client/src/test/formatter.test.ts | 1 + client/src/test/zhlintrc.test.ts | 1 + client/testFixture/example-units-expected.json | 8 ++++---- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/client/src/test/diagnostics.test.ts b/client/src/test/diagnostics.test.ts index a0f5e30..0ec2917 100644 --- a/client/src/test/diagnostics.test.ts +++ b/client/src/test/diagnostics.test.ts @@ -6,6 +6,7 @@ import * as assert from 'node:assert' import { readFile } from 'node:fs/promises' import * as vscode from 'vscode' +import { it } from 'mocha' import { activate, getDocUri } from './helper' suite('Should get diagnostics', () => { diff --git a/client/src/test/formatter.test.ts b/client/src/test/formatter.test.ts index 184e1f7..de390e4 100644 --- a/client/src/test/formatter.test.ts +++ b/client/src/test/formatter.test.ts @@ -1,4 +1,5 @@ import * as vscode from 'vscode' +import { it } from 'mocha' import { assertEqualAfterFix } from './helper' suite('formatter should work', () => { diff --git a/client/src/test/zhlintrc.test.ts b/client/src/test/zhlintrc.test.ts index d308c58..de43958 100644 --- a/client/src/test/zhlintrc.test.ts +++ b/client/src/test/zhlintrc.test.ts @@ -1,3 +1,4 @@ +import { it } from 'mocha' import { assertEqualAfterFix } from './helper' suite('zhlintrc, zhlintignore should work', () => { diff --git a/client/testFixture/example-units-expected.json b/client/testFixture/example-units-expected.json index dd90a99..c8e0535 100644 --- a/client/testFixture/example-units-expected.json +++ b/client/testFixture/example-units-expected.json @@ -611,7 +611,7 @@ }, { "target": "startContent", - "message": "此处标点符号需要统一到简体", + "message": "此处字符需要统一", "range": [ 20, 18, @@ -621,7 +621,7 @@ }, { "target": "endContent", - "message": "此处标点符号需要统一到简体", + "message": "此处字符需要统一", "range": [ 20, 24, @@ -651,7 +651,7 @@ }, { "target": "startContent", - "message": "此处标点符号需要统一到简体", + "message": "此处字符需要统一", "range": [ 20, 20, @@ -661,7 +661,7 @@ }, { "target": "endContent", - "message": "此处标点符号需要统一到简体", + "message": "此处字符需要统一", "range": [ 20, 22,