1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-02 11:42:53 +02:00

Convert Slate tests to TypeScript (#3784)

* changed to tsx

* slate tests

* finished making typescript tests

* linting

* linting

* reverted slate-hyperscript files to jsx and changed edlint config

* removed extra file

* Update package.json

* Update package.json

* deleted { file

* changed to tsx

* slate tests

* finished making typescript tests

* linting

* linting

* reverted slate-hyperscript files to jsx and changed edlint config

* removed extra file

* Update package.json

* Update package.json

* deleted { file

* rebase

* removed ~ files

* changed yarn
This commit is contained in:
Maria Jaramillo
2020-07-14 12:47:47 -05:00
committed by GitHub
parent 97dbab13a8
commit 93fe251517
890 changed files with 43 additions and 3230 deletions

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -11,7 +10,6 @@ export const input = (
</element>
</editor>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -16,7 +15,6 @@ export const input = (
</element>
</editor>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -14,7 +13,6 @@ export const input = (
</element>
</editor>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -14,7 +13,6 @@ export const input = (
</element>
</editor>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -14,7 +13,6 @@ export const input = (
</element>
</editor>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -9,7 +8,6 @@ export const input = (
</element>
</editor>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -10,7 +9,6 @@ export const input = (
</element>
</editor>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -10,7 +9,6 @@ export const input = (
</element>
</editor>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -12,7 +11,6 @@ export const input = (
</element>
</editor>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -13,7 +12,6 @@ export const input = (
</element>
</editor>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -12,7 +11,6 @@ export const input = (
</element>
</editor>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -10,7 +9,6 @@ export const input = (
</element>
</editor>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -11,7 +10,6 @@ export const input = (
</element>
</editor>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { createHyperscript } from 'slate-hyperscript'
const jsx = createHyperscript({
@@ -7,9 +6,7 @@ const jsx = createHyperscript({
paragraph: { type: 'paragraph' },
},
})
export const input = <paragraph>word</paragraph>
export const output = {
type: 'paragraph',
children: [

View File

@@ -1,9 +1,7 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = <element />
export const output = {
children: [],
}

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -7,7 +6,6 @@ export const input = (
<element />
</element>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -7,7 +6,6 @@ export const input = (
<element>word</element>
</element>
)
export const output = {
children: [
{

View File

@@ -1,9 +1,7 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = <element>word</element>
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -7,7 +6,6 @@ export const input = (
<text />
</element>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -7,7 +6,6 @@ export const input = (
<text>word</text>
</element>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -7,7 +6,6 @@ export const input = (
<element>word</element>
</fragment>
)
export const output = [
{
children: [

View File

@@ -1,7 +1,5 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = <fragment />
export const output = []

View File

@@ -1,9 +1,7 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = <fragment>word</fragment>
export const output = [
{
text: 'word',

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -11,7 +10,6 @@ export const input = (
</selection>
</editor>
)
export const output = {
children: [
{

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -11,7 +10,6 @@ export const input = (
</selection>
</editor>
)
export const output = {
children: [
{

View File

@@ -1,9 +1,7 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = <text a />
export const output = {
text: '',
a: true,

View File

@@ -1,9 +1,7 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = <text a>word</text>
export const output = {
text: 'word',
a: true,

View File

@@ -1,5 +1,4 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
@@ -7,7 +6,6 @@ export const input = (
<text a>word</text>
</text>
)
export const output = {
text: 'word',
a: true,

View File

@@ -1,9 +1,7 @@
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = <editor />
export const output = {
children: [],
selection: null,