Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit a670dd4

Browse files
committed
Fix test
1 parent 78459bf commit a670dd4

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

src/modifiers/__test__/changeCurrentInlineStyle-test.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { expect } from "chai";
21
import Draft, { EditorState, SelectionState } from "draft-js";
32
import changeCurrentInlineStyle from "../changeCurrentInlineStyle";
43

@@ -43,10 +42,8 @@ describe("changeCurrentInlineStyle", () => {
4342
matchArr,
4443
"CODE"
4544
);
46-
expect(newEditorState).not.to.equal(editorState);
47-
expect(
48-
Draft.convertToRaw(newEditorState.getCurrentContent())
49-
).to.deep.equal(
45+
expect(newEditorState).not.toEqual(editorState);
46+
expect(Draft.convertToRaw(newEditorState.getCurrentContent())).toEqual(
5047
rawContentState(
5148
"foo bar baz",
5249
[
@@ -72,12 +69,10 @@ describe("changeCurrentInlineStyle", () => {
7269
"CODE",
7370
"\n"
7471
);
75-
expect(newEditorState).not.to.equal(editorState);
76-
expect(
77-
Draft.convertToRaw(newEditorState.getCurrentContent())
78-
).to.deep.equal(
72+
expect(newEditorState).not.toEqual(editorState);
73+
expect(Draft.convertToRaw(newEditorState.getCurrentContent())).toEqual(
7974
rawContentState(
80-
"foo bar baz",
75+
"foo bar\n baz",
8176
[
8277
{
8378
length: 3,

0 commit comments

Comments
 (0)