From 4d0f067250b09706567199911018ea26c0b474f1 Mon Sep 17 00:00:00 2001 From: Samy Pesse Date: Sun, 23 Oct 2016 23:08:01 +0200 Subject: [PATCH] Add failing test for schema rule --- .../default-void-text-around/end-inline/index.js | 2 ++ .../end-inline/input.yaml | 13 +++++++++++++ .../end-inline/output.yaml | 15 +++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 test/schema/fixtures/default-void-text-around/end-inline/index.js create mode 100644 test/schema/fixtures/default-void-text-around/end-inline/input.yaml create mode 100644 test/schema/fixtures/default-void-text-around/end-inline/output.yaml diff --git a/test/schema/fixtures/default-void-text-around/end-inline/index.js b/test/schema/fixtures/default-void-text-around/end-inline/index.js new file mode 100644 index 000000000..9a676e861 --- /dev/null +++ b/test/schema/fixtures/default-void-text-around/end-inline/index.js @@ -0,0 +1,2 @@ + +export default {} diff --git a/test/schema/fixtures/default-void-text-around/end-inline/input.yaml b/test/schema/fixtures/default-void-text-around/end-inline/input.yaml new file mode 100644 index 000000000..0ee1c3d1b --- /dev/null +++ b/test/schema/fixtures/default-void-text-around/end-inline/input.yaml @@ -0,0 +1,13 @@ + +nodes: + - kind: block + type: default + nodes: + - kind: inline + type: link + nodes: + - kind: text + text: "Hello " + - kind: inline + type: image + isVoid: true diff --git a/test/schema/fixtures/default-void-text-around/end-inline/output.yaml b/test/schema/fixtures/default-void-text-around/end-inline/output.yaml new file mode 100644 index 000000000..094c692c4 --- /dev/null +++ b/test/schema/fixtures/default-void-text-around/end-inline/output.yaml @@ -0,0 +1,15 @@ + +nodes: + - kind: block + type: default + nodes: + - kind: inline + type: link + nodes: + - kind: text + text: "Hello " + - kind: inline + type: image + isVoid: true + - kind: text + text: " "