@@ -11,13 +11,13 @@ describe("e2e", () => {
11
11
. use ( remarkToSlate ) ;
12
12
const toRemarkProcessor = unified ( ) . use ( slateToRemark ) . use ( stringify ) ;
13
13
14
- it ( "plain text" , async ( ) => {
14
+ it ( "plain text" , ( ) => {
15
15
const slateNodes = toSlateProcessor . processSync (
16
16
fs . readFileSync ( path . join ( __dirname , "../fixture/plain-text.md" ) )
17
17
) . result ;
18
18
expect ( slateNodes ) . toMatchSnapshot ( ) ;
19
19
20
- const mdastTree = await toRemarkProcessor . run ( {
20
+ const mdastTree = toRemarkProcessor . runSync ( {
21
21
type : "root" ,
22
22
children : slateNodes ,
23
23
} ) ;
@@ -27,13 +27,13 @@ describe("e2e", () => {
27
27
expect ( text ) . toMatchSnapshot ( ) ;
28
28
} ) ;
29
29
30
- it ( "headings" , async ( ) => {
30
+ it ( "headings" , ( ) => {
31
31
const slateNodes = toSlateProcessor . processSync (
32
32
fs . readFileSync ( path . join ( __dirname , "../fixture/headings.md" ) )
33
33
) . result ;
34
34
expect ( slateNodes ) . toMatchSnapshot ( ) ;
35
35
36
- const mdastTree = await toRemarkProcessor . run ( {
36
+ const mdastTree = toRemarkProcessor . runSync ( {
37
37
type : "root" ,
38
38
children : slateNodes ,
39
39
} ) ;
@@ -43,13 +43,13 @@ describe("e2e", () => {
43
43
expect ( text ) . toMatchSnapshot ( ) ;
44
44
} ) ;
45
45
46
- it ( "article" , async ( ) => {
46
+ it ( "article" , ( ) => {
47
47
const slateNodes = toSlateProcessor . processSync (
48
48
fs . readFileSync ( path . join ( __dirname , "../fixture/article.md" ) )
49
49
) . result ;
50
50
expect ( slateNodes ) . toMatchSnapshot ( ) ;
51
51
52
- const mdastTree = await toRemarkProcessor . run ( {
52
+ const mdastTree = toRemarkProcessor . runSync ( {
53
53
type : "root" ,
54
54
children : slateNodes ,
55
55
} ) ;
0 commit comments