1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 10:51:44 +02:00

Add more unit tests for normalize of "text around isVoid"

This commit is contained in:
Samy Pesse
2016-10-22 18:13:29 +02:00
parent 7d1279ffe9
commit 7ed21fde63
9 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
export default {}

View File

@@ -0,0 +1,10 @@
nodes:
- kind: block
type: default
nodes:
- kind: text
text: "Hello "
- kind: inline
isVoid: true
type: image

View File

@@ -0,0 +1,13 @@
nodes:
- kind: block
type: default
nodes:
- kind: text
text: "Hello "
- kind: inline
isVoid: true
type: image
- kind: text
text: ""

View File

@@ -0,0 +1,2 @@
export default {}

View File

@@ -0,0 +1,10 @@
nodes:
- kind: block
type: default
nodes:
- kind: inline
isVoid: true
type: image
- kind: text
text: " Hello"

View File

@@ -0,0 +1,13 @@
nodes:
- kind: block
type: default
nodes:
- kind: text
text: ""
- kind: inline
isVoid: true
type: image
- kind: text
text: " Hello"

View File

@@ -0,0 +1,2 @@
export default {}

View File

@@ -0,0 +1,13 @@
nodes:
- kind: block
type: default
nodes:
- kind: inline
type: link
nodes:
- kind: text
text: "Hello "
- kind: inline
isVoid: true
type: image

View File

@@ -0,0 +1,16 @@
nodes:
- kind: block
type: default
nodes:
- kind: inline
type: link
nodes:
- kind: text
text: "Hello "
- kind: inline
isVoid: true
type: image
- kind: text
text: ""