Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 51a74dc

Browse files
More test fixes
1 parent cef031c commit 51a74dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/typescript-estree/src/convert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3514,7 +3514,7 @@ export class Converter {
35143514
: (): Value => {
35153515
if (!warned) {
35163516
process.emitWarning(
3517-
`The '${deprecatedKey}' property is deprecated on ${node.type} nodes. Use ${preferredKey} instead. See https://typescript-eslint.io/linting/troubleshooting#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,
3517+
`The '${deprecatedKey}' property is deprecated on ${node.type} nodes. Use ${preferredKey} instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,
35183518
'DeprecationWarning',
35193519
);
35203520
warned = true;

packages/typescript-estree/tests/lib/convert.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ describe('convert', () => {
323323
esTsEnumDeclaration.members;
324324

325325
expect(emitWarning).toHaveBeenCalledWith(
326-
`The 'members' property is deprecated on TSEnumDeclaration nodes. Use 'body.members' instead. See https://typescript-eslint.io/troubleshooting/faqs#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,
326+
`The 'members' property is deprecated on TSEnumDeclaration nodes. Use 'body.members' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,
327327
'DeprecationWarning',
328328
);
329329
});
@@ -387,7 +387,7 @@ describe('convert', () => {
387387
tsMappedType.typeParameter;
388388

389389
expect(emitWarning).toHaveBeenCalledWith(
390-
`The 'typeParameter' property is deprecated on TSMappedType nodes. Use 'constraint' and 'key' instead. See https://typescript-eslint.io/linting/troubleshooting#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,
390+
`The 'typeParameter' property is deprecated on TSMappedType nodes. Use 'constraint' and 'key' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,
391391
'DeprecationWarning',
392392
);
393393
});

0 commit comments

Comments
 (0)