From 578e679fb7cb5058c5172a1fc2ede58708f5d80e Mon Sep 17 00:00:00 2001 From: William Cotton Date: Thu, 11 Aug 2016 14:07:52 -0500 Subject: [PATCH] report bug when disabling config for ObjectExpressionOpeningBrace, ObjectExpressionClosingBrace and Property --- .../arrow-function-object-pattern-config.json | 26 +++++++++++++++++++ .../arrow-function-object-pattern-in.js | 3 +++ .../arrow-function-object-pattern-out.js | 3 +++ 3 files changed, 32 insertions(+) create mode 100644 test/compare/custom/arrow-function-object-pattern-config.json create mode 100644 test/compare/custom/arrow-function-object-pattern-in.js create mode 100644 test/compare/custom/arrow-function-object-pattern-out.js diff --git a/test/compare/custom/arrow-function-object-pattern-config.json b/test/compare/custom/arrow-function-object-pattern-config.json new file mode 100644 index 0000000..3f69e8a --- /dev/null +++ b/test/compare/custom/arrow-function-object-pattern-config.json @@ -0,0 +1,26 @@ +{ + "lineBreak" : { + "before" : { + "ObjectExpressionOpeningBrace" : -1, + "ObjectExpressionClosingBrace" : -1, + "Property": -1 + }, + "after" : { + "ObjectExpressionOpeningBrace" : -1, + "ObjectExpressionClosingBrace" : -1, + "Property": -1 + } + }, + "whiteSpace" : { + "before" : { + "ObjectExpressionOpeningBrace": -1, + "ObjectExpressionClosingBrace": -1, + "Property": -1 + }, + "after" : { + "ObjectExpressionOpeningBrace": -1, + "ObjectExpressionClosingBrace": -1, + "Property": -1 + } + } +} diff --git a/test/compare/custom/arrow-function-object-pattern-in.js b/test/compare/custom/arrow-function-object-pattern-in.js new file mode 100644 index 0000000..58d4029 --- /dev/null +++ b/test/compare/custom/arrow-function-object-pattern-in.js @@ -0,0 +1,3 @@ +t.test('abstract', t => followsAbstract({ t, setup, teardown })) + +t.test('abstract', t => followsAbstract({t, setup, teardown})) diff --git a/test/compare/custom/arrow-function-object-pattern-out.js b/test/compare/custom/arrow-function-object-pattern-out.js new file mode 100644 index 0000000..58d4029 --- /dev/null +++ b/test/compare/custom/arrow-function-object-pattern-out.js @@ -0,0 +1,3 @@ +t.test('abstract', t => followsAbstract({ t, setup, teardown })) + +t.test('abstract', t => followsAbstract({t, setup, teardown}))