From 354e6f02f17a5532c1e071935947b515b66805c3 Mon Sep 17 00:00:00 2001 From: be5invis Date: Thu, 18 Jun 2020 23:05:26 -0700 Subject: [PATCH] Move test up to avoid parsing error --- tests/src/rules/order.js | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/tests/src/rules/order.js b/tests/src/rules/order.js index d25c2e8740..25d046b51d 100644 --- a/tests/src/rules/order.js +++ b/tests/src/rules/order.js @@ -753,6 +753,21 @@ ruleTester.run('order', rule, { }, ], }), + test({ + code: ` + import { a } from "./a"; + export namespace SomeNamespace { + export import a2 = a; + } + `, + parser, + options: [ + { + groups: ['external', 'index'], + alphabetize: { order: 'asc' }, + }, + ], + }), ]), ], invalid: [ @@ -2220,25 +2235,6 @@ context('TypeScript', function () { }, parserConfig, ), - // Option alphabetize: {order: 'asc'} - test( - { - code: ` - import { a } from "./a"; - export namespace SomeNamespace { - export import a2 = a; - } - `, - parser, - options: [ - { - groups: ['external', 'index'], - alphabetize: { order: 'asc' }, - }, - ], - }, - parserConfig, - ), ], invalid: [ // Option alphabetize: {order: 'asc'}