From ce21d6b7327492f7536c8a0ac4a75a96985d2fa7 Mon Sep 17 00:00:00 2001 From: Long Ho Date: Sun, 29 Mar 2020 17:22:41 -0400 Subject: [PATCH] chore(eslint-plugin-formatjs): add output test --- packages/eslint-plugin-formatjs/tests/index.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/eslint-plugin-formatjs/tests/index.test.ts b/packages/eslint-plugin-formatjs/tests/index.test.ts index 494d3fc40..a4ae375ba 100644 --- a/packages/eslint-plugin-formatjs/tests/index.test.ts +++ b/packages/eslint-plugin-formatjs/tests/index.test.ts @@ -220,6 +220,8 @@ _({ message: 'Multiple consecutive whitespaces are not allowed', }, ], + output: + "import {_} from '@formatjs/macro';_({defaultMessage: 'a {placeHolder}'})", }, { code: "", @@ -228,6 +230,7 @@ _({ message: 'Multiple consecutive whitespaces are not allowed', }, ], + output: "", }, { code: ` @@ -240,6 +243,11 @@ _({ message: 'Multiple consecutive whitespaces are not allowed', }, ], + output: ` + import {_} from '@formatjs/macro' + _({ + defaultMessage: 'a {placeHolder}' + })`, }, ], });