Skip to content

Commit

Permalink
Fixed formatting.
Browse files Browse the repository at this point in the history
Signed-off-by: Titian Cernicova-Dragomir <[email protected]>
  • Loading branch information
dragomirtitian committed Jan 17, 2024
1 parent 373aaf4 commit e7ad116
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/testRunner/compilerRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ class IsolatedDeclarationTest extends CompilerTestBase {
// Exclude tests some tests
// - those explicitly not opting into isolatedDeclarations
// - those that do not usually emit output anyway
if((options.isolatedDeclarations === false || options.noEmit || options.noTypesAndSymbols || !options.declaration)) {
if (options.isolatedDeclarations === false || options.noEmit || options.noTypesAndSymbols || !options.declaration) {
return undefined;
}
}
Expand Down Expand Up @@ -665,7 +665,8 @@ class IsolatedDeclarationTest extends CompilerTestBase {
verifyDiffReason() {
if (this.isOutputMapEquivalent && this.isOutputEquivalent && this.isDiagnosticEquivalent) {
ts.Debug.assert(this.diffReason === undefined, "Should not have a diff reason if everything is equivalent");
}else {
}
else {
ts.Debug.assert(this.diffReason !== undefined, "Should have a reason if everything is not equivalent");
}
}
Expand Down Expand Up @@ -706,7 +707,7 @@ class IsolatedDeclarationTest extends CompilerTestBase {

class FixedIsolatedDeclarationTest extends IsolatedDeclarationTest {
static fixTestProject(compilerEnvironment: CompilerTestEnvironment, shouldNotExclude = !!compilerEnvironment.testCaseContent.settings.isolatedDeclarationFixedDiffReason): CompilerTestEnvironment | undefined {
if(!shouldNotExclude) {
if (!shouldNotExclude) {
// Exclude test that disable types and symbols (good proxy for very complex test)
if (compilerEnvironment.compilerOptions.noTypesAndSymbols) {
return undefined;
Expand Down

0 comments on commit e7ad116

Please sign in to comment.