Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Armando Aguirre Sepulveda committed Jul 10, 2024
1 parent da2c2e5 commit 4e8613f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/testRunner/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ export * from "./unittests/tsserver/partialSemanticServer.js";
export * from "./unittests/tsserver/pasteEdits.js";
export * from "./unittests/tsserver/plugins.js";
export * from "./unittests/tsserver/pluginsAsync.js";
export * from "./unittests/tsserver/projectImportHelpers.js";
export * from "./unittests/tsserver/projectErrors.js";
export * from "./unittests/tsserver/projectImportHelpers.js";
export * from "./unittests/tsserver/projectReferenceCompileOnSave.js";
export * from "./unittests/tsserver/projectReferenceErrors.js";
export * from "./unittests/tsserver/projectReferences.js";
Expand Down
21 changes: 8 additions & 13 deletions src/testRunner/unittests/tsserver/projectImportHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import {
openFilesForSession,
TestSession,
} from "../helpers/tsserver.js";
import {
createServerHost,
} from "../helpers/virtualFileSystemWithWatch.js";
import { createServerHost } from "../helpers/virtualFileSystemWithWatch.js";

describe("unittests:: tsserver:: projectImportHelpers::", () => {
it("import helpers sucessfully", () => {
Expand All @@ -16,24 +14,21 @@ describe("unittests:: tsserver:: projectImportHelpers::", () => {
content: `
export type Foo {
bar: number;
};
`
}
};`,
};
const file1 = {
path: "/a/file1.ts",
content: `
import { Foo } from "./type";
const a: Foo = { bar : 1 };
a.bar;
`,
a.bar;`,
};
const file2 = {
path: "/a/file2.ts",
content: `
import { Foo } from "./type";
const a: Foo = { bar : 2 };
a.bar;
`,
a.bar;`,
};

const config1 = {
Expand All @@ -44,7 +39,7 @@ a.bar;
importHelpers: true,
},
}),
}
};

const file3 = {
path: "/file3.js",
Expand All @@ -67,10 +62,10 @@ a.bar;
arguments: {
file: file1.path,
line: 4,
offset: 3
offset: 3,
},
});

baselineTsserverLogs("importHelpers", "import helpers successfully", session);
});
});
});

0 comments on commit 4e8613f

Please sign in to comment.