Skip to content

Commit

Permalink
style: Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nonara authored and Ron Spickenagel committed Jan 5, 2023
1 parent 0ff48d7 commit edd0000
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/prepare.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require("fs");
const path = require("path");
const tsPatch = require("ts-patch");
const tsp1 = require('tsp1');
const tsp1 = require("tsp1");

/* ****************************************************************************************************************** *
* Config
Expand All @@ -22,6 +22,6 @@ for (const tsDirName of tsDirs) {
}

// Patch discovered modules
for (const [ dirName, dir ] of baseDirs)
if (dirName === 'typescript-three') tsp1.patch(["tsc.js", "typescript.js"], { basedir: dir })
for (const [dirName, dir] of baseDirs)
if (dirName === "typescript-three") tsp1.patch(["tsc.js", "typescript.js"], { basedir: dir });
else tsPatch.patch(["tsc.js", "typescript.js"], { dir });
4 changes: 3 additions & 1 deletion test/tests/transformer/specific.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ describe(`Specific Tests`, () => {

(!skipDts && tsVersion >= 38 ? test : test.skip)(`Resolves nested imports`, () => {
expect(subPackagesFile).transformedMatches(
`export ${tsVersion < 49 ? `declare ` : ''}type ImportWithChildren = import("./packages/pkg-a").PassThru<import("./packages/pkg-b").PackageBType>`,
`export ${
tsVersion < 49 ? `declare ` : ""
}type ImportWithChildren = import("./packages/pkg-a").PassThru<import("./packages/pkg-b").PackageBType>`,
{ kind: ["dts"] }
);
});
Expand Down

0 comments on commit edd0000

Please sign in to comment.