Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

chore: move 89c818c up and minor change

Donny Kim0bbb22119338
diff --git a/packages/vscode-plugin/src/tests/suite/integration.test.ts b/packages/vscode-plugin/src/tests/suite/integration.test.ts
index 542a14b42..7aebc3db8 100644
--- a/packages/vscode-plugin/src/tests/suite/integration.test.ts
+++ b/packages/vscode-plugin/src/tests/suite/integration.test.ts
@@ -29,7 +29,7 @@ describe('Integration >', () => {
expect(harper.isActive).toBe(true);
});
- it('gives correct diagnostics', () => {
+ it('gives correct diagnostics for files', () => {
compareActualVsExpectedDiagnostics(
getActualDiagnostics(markdownUri),
createExpectedDiagnostics(
@@ -45,6 +45,15 @@ describe('Integration >', () => {
);
});
+ it('does nothing for untitled', async () => {
+ const untitledUri = await openUntitled('Errorz');
+
+ compareActualVsExpectedDiagnostics(
+ getActualDiagnostics(untitledUri),
+ createExpectedDiagnostics()
+ );
+ });
+
it('updates diagnostics on configuration change', async () => {
const config = workspace.getConfiguration('harper.linters');
await config.update('RepeatedWords', false, ConfigurationTarget.Workspace);
@@ -97,13 +106,4 @@ describe('Integration >', () => {
await workspace.fs.writeFile(markdownUri, markdownContent);
await openFile('integration.md');
});
-
- it('does nothing for untitled', async () => {
- const untitledUri = await openUntitled('Errorz');
-
- compareActualVsExpectedDiagnostics(
- getActualDiagnostics(untitledUri),
- createExpectedDiagnostics()
- );
- });
});