From f7bc39e6e9fdbcfb8a89763ed29489bad86afd60 Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 31 Oct 2018 17:07:03 +0000 Subject: [PATCH] update tests --- types/slate-react/slate-react-tests.tsx | 4 ++-- types/slate/slate-tests.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/slate-react/slate-react-tests.tsx b/types/slate-react/slate-react-tests.tsx index 64f1256668..76ecb5c579 100644 --- a/types/slate-react/slate-react-tests.tsx +++ b/types/slate-react/slate-react-tests.tsx @@ -19,8 +19,8 @@ class MyPlugin implements Plugin { } } } - onChange = (operations: Immutable.List, value: Value) => { - console.log(value); + onChange = (change: {operations: Immutable.List, value: Value}) => { + console.log(change.value); } } diff --git a/types/slate/slate-tests.ts b/types/slate/slate-tests.ts index 0d6f2331e5..98c0758c21 100644 --- a/types/slate/slate-tests.ts +++ b/types/slate/slate-tests.ts @@ -265,7 +265,7 @@ editor .unwrapNodeByKey("a") .unwrapNodeByPath("a") .withoutMerging(() => { /* noop */ }) -.withoutNormalization(() => { /* noop */ }) +.withoutNormalizing(() => { /* noop */ }) .withoutSaving(() => { /* noop */ }) .wrapBlock("paragraph") .wrapBlockAtRange(range, "paragraph")