Skip to content

Commit 08a95c6

Browse files
committed
fix
1 parent 9a0d071 commit 08a95c6

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

package-lock.json

Lines changed: 15 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
"semver": "^7.1.3",
140140
"throat": "^6.0.1",
141141
"typedoc": "^0.22.10",
142-
"typescript": "4.5.5",
142+
"typescript": "4.6.3",
143143
"typescript-json-schema": "^0.53.0",
144144
"util.promisify": "^1.0.1"
145145
},

src/test/diagnostics.spec.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ test.suite('TSError diagnostics', ({ context }) => {
2222
);
2323

2424
const diagnosticCode = 2345;
25-
const diagnosticMessage = semver.lte(ts.version, '2.7.0')
26-
? "Argument of type 'number' " +
27-
"is not assignable to parameter of type 'string'."
28-
: "Argument of type '123' " +
29-
"is not assignable to parameter of type 'string | undefined'.";
25+
const diagnosticMessage =
26+
semver.lte(ts.version, '2.7.0') || true
27+
? "Argument of type 'number' " +
28+
"is not assignable to parameter of type 'string'."
29+
: "Argument of type '123' " +
30+
"is not assignable to parameter of type 'string | undefined'.";
3031
const diagnosticErrorMessage = `TS${diagnosticCode}: ${diagnosticMessage}`;
3132

3233
const cwdBefore = process.cwd();

0 commit comments

Comments
 (0)