Skip to content

Commit

Permalink
linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller committed Sep 22, 2022
1 parent 88d7c00 commit e996008
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/jsii/test/deprecation-warnings.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,11 @@ function testpkg_Baz(p) {

compile(calcBaseOfBaseRoot, false);
compile(calcBaseRoot, true);
compile(calcLibRoot, true, path.join(calcLibRoot, 'deprecated-to-strip.txt'));
compile(
calcLibRoot,
true,
path.join(calcLibRoot, 'deprecated-to-strip.txt'),
);
const warningsFile = loadWarningsFile(calcBaseRoot);

// jsii-calc-base was compiled with warnings. So we expect to see handlers for its types in the warnings file
Expand Down Expand Up @@ -905,7 +909,11 @@ function resolveModuleDir(name: string) {
return path.dirname(require.resolve(`${name}/package.json`));
}

function compile(projectRoot: string, addDeprecationWarnings: boolean, stripDeprecated?: string) {
function compile(
projectRoot: string,
addDeprecationWarnings: boolean,
stripDeprecated?: string,
) {
const { projectInfo } = loadProjectInfo(projectRoot);

const compiler = new Compiler({
Expand Down

0 comments on commit e996008

Please sign in to comment.