From 66c1a7c8fcba6ef118469e0845ddd8638069d35a Mon Sep 17 00:00:00 2001 From: mitermayer Date: Sat, 15 Feb 2020 09:49:17 +0000 Subject: Added support for prettier xml plugin - updated package.json deps - added tests - updated lock file --- tests/__snapshots__/formatting.test.js.snap | 44 +++++++++++++++++++++++++++++ tests/fixtures/foo.xml | 19 +++++++++++++ tests/formatting.test.js | 2 +- 3 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 tests/fixtures/foo.xml (limited to 'tests') diff --git a/tests/__snapshots__/formatting.test.js.snap b/tests/__snapshots__/formatting.test.js.snap index cfa24bf..fafb3e7 100644 --- a/tests/__snapshots__/formatting.test.js.snap +++ b/tests/__snapshots__/formatting.test.js.snap @@ -282,6 +282,50 @@ export default { " `; +exports[`Prettier formats foo.xml file with :Prettier command 1`] = ` +" + + + + + foo + + bar + + + +" +`; + +exports[`Prettier formats foo.xml file with :PrettierAsync command 1`] = ` +" + + + + + foo + + bar + + + +" +`; + exports[`Prettier formats foo.yaml file with :Prettier command 1`] = ` "foo: bar: diff --git a/tests/fixtures/foo.xml b/tests/fixtures/foo.xml new file mode 100644 index 0000000..93d6e9b --- /dev/null +++ b/tests/fixtures/foo.xml @@ -0,0 +1,19 @@ + + + + + + foo + + bar + + + + diff --git a/tests/formatting.test.js b/tests/formatting.test.js index 2a3e373..4ea2906 100644 --- a/tests/formatting.test.js +++ b/tests/formatting.test.js @@ -10,7 +10,7 @@ const FIXTURES_DIR = `${__dirname}/fixtures`; let server; let remote; -jest.setTimeout(10000); +jest.setTimeout(15000); const getBufferContents = async remote => (await remote.call('getline', [1, '$'])).join('\n'); -- cgit v1.3-6-g1900