diff --git a/packages/slate/test/interfaces/Node/first/success.js b/packages/slate/test/interfaces/Node/first/success.js new file mode 100644 index 000000000..e7644f791 --- /dev/null +++ b/packages/slate/test/interfaces/Node/first/success.js @@ -0,0 +1,19 @@ +/** @jsx jsx */ + +import { Node } from 'slate' +import { jsx } from 'slate-hyperscript' + +export const input = ( + + + + + + +) + +export const test = value => { + return Node.first(value, [0]) +} + +export const output = [, [0, 0]] diff --git a/packages/slate/test/interfaces/Node/last/success.js b/packages/slate/test/interfaces/Node/last/success.js new file mode 100644 index 000000000..2f8c392cf --- /dev/null +++ b/packages/slate/test/interfaces/Node/last/success.js @@ -0,0 +1,19 @@ +/** @jsx jsx */ + +import { Node } from 'slate' +import { jsx } from 'slate-hyperscript' + +export const input = ( + + + + + + +) + +export const test = value => { + return Node.last(value, [0]) +} + +export const output = [, [0, 1]]