diff --git a/packages/localize/src/tools/test/translate/source_files/es5_translate_plugin_spec.ts b/packages/localize/src/tools/test/translate/source_files/es5_translate_plugin_spec.ts index ff2a1b89d6..ecee911cc7 100644 --- a/packages/localize/src/tools/test/translate/source_files/es5_translate_plugin_spec.ts +++ b/packages/localize/src/tools/test/translate/source_files/es5_translate_plugin_spec.ts @@ -140,9 +140,9 @@ describe('makeEs5Plugin', () => { expect(diagnostics.hasErrors).toBe(true); expect(diagnostics.messages[0]).toEqual({ type: 'error', - message: '/app/dist/test.js: `$localize` called without any arguments.\n' + + message: '`$localize` called without any arguments.\n' + '> 1 | $localize()\n' + - ' | ^', + ' | ^^^^^^^^^^^', }); }); @@ -156,9 +156,9 @@ describe('makeEs5Plugin', () => { expect(diagnostics.hasErrors).toBe(true); expect(diagnostics.messages[0]).toEqual({ type: 'error', - message: '/app/dist/test.js: Unexpected argument to `$localize` (expected an array).\n' + + message: 'Unexpected argument to `$localize` (expected an array).\n' + '> 1 | $localize(...x)\n' + - ' | ^', + ' | ^^^^', }); }); @@ -172,10 +172,9 @@ describe('makeEs5Plugin', () => { expect(diagnostics.hasErrors).toBe(true); expect(diagnostics.messages[0]).toEqual({ type: 'error', - message: - '/app/dist/test.js: Unexpected messageParts for `$localize` (expected an array of strings).\n' + + message: 'Unexpected messageParts for `$localize` (expected an array of strings).\n' + '> 1 | $localize(null, [])\n' + - ' | ^', + ' | ^^^^', }); }); @@ -190,9 +189,9 @@ describe('makeEs5Plugin', () => { expect(diagnostics.messages[0]).toEqual({ type: 'error', message: - '/app/dist/test.js: Unexpected `raw` argument to the "makeTemplateObject()" function (expected an expression).\n' + + 'Unexpected `raw` argument to the "makeTemplateObject()" function (expected an expression).\n' + '> 1 | $localize(__makeTemplateObject([], ...[]))\n' + - ' | ^', + ' | ^^^^^', }); }); @@ -207,9 +206,9 @@ describe('makeEs5Plugin', () => { expect(diagnostics.messages[0]).toEqual({ type: 'error', message: - '/app/dist/test.js: Unexpected `cooked` argument to the "makeTemplateObject()" function (expected an expression).\n' + + 'Unexpected `cooked` argument to the "makeTemplateObject()" function (expected an expression).\n' + '> 1 | $localize(__makeTemplateObject(...[], []))\n' + - ' | ^', + ' | ^^^^^', }); }); @@ -223,10 +222,9 @@ describe('makeEs5Plugin', () => { expect(diagnostics.hasErrors).toBe(true); expect(diagnostics.messages[0]).toEqual({ type: 'error', - message: - '/app/dist/test.js: Unexpected messageParts for `$localize` (expected an array of strings).\n' + + message: 'Unexpected messageParts for `$localize` (expected an array of strings).\n' + '> 1 | $localize(__makeTemplateObject(["a", 12, "b"], ["a", "12", "b"]))\n' + - ' | ^', + ' | ^^^^^^^^^^^^^^', }); }); @@ -240,10 +238,9 @@ describe('makeEs5Plugin', () => { expect(diagnostics.hasErrors).toBe(true); expect(diagnostics.messages[0]).toEqual({ type: 'error', - message: - '/app/dist/test.js: Unexpected messageParts for `$localize` (expected an array of strings).\n' + + message: 'Unexpected messageParts for `$localize` (expected an array of strings).\n' + '> 1 | $localize(__makeTemplateObject(["a", "12", "b"], ["a", 12, "b"]))\n' + - ' | ^', + ' | ^^^^^^^^^^^^^^', }); }); @@ -258,9 +255,9 @@ describe('makeEs5Plugin', () => { expect(diagnostics.messages[0]).toEqual({ type: 'error', message: - '/app/dist/test.js: Invalid substitutions for `$localize` (expected all substitution arguments to be expressions).\n' + + 'Invalid substitutions for `$localize` (expected all substitution arguments to be expressions).\n' + '> 1 | $localize(__makeTemplateObject(["a", "b"], ["a", "b"]), ...[])\n' + - ' | ^', + ' | ^^^^^', }); });