@@ -11,8 +11,8 @@ const app = createBaseApp({
11
11
app . markdown = createMarkdown ( )
12
12
13
13
describe ( 'core > page > renderPageContent' , ( ) => {
14
- it ( 'should render page content correctly' , async ( ) => {
15
- const resolved = await renderPageContent ( {
14
+ it ( 'should render page content correctly' , ( ) => {
15
+ const resolved = renderPageContent ( {
16
16
app,
17
17
content : `\
18
18
foobar
@@ -64,8 +64,8 @@ const msg = 'msg'
64
64
} )
65
65
66
66
describe ( 'page title' , ( ) => {
67
- it ( 'should use title in frontmatter' , async ( ) => {
68
- const resolved = await renderPageContent ( {
67
+ it ( 'should use title in frontmatter' , ( ) => {
68
+ const resolved = renderPageContent ( {
69
69
app,
70
70
content : '# title in header' ,
71
71
filePath : null ,
@@ -80,8 +80,8 @@ const msg = 'msg'
80
80
expect ( resolved . title ) . toEqual ( 'title in frontmatter' )
81
81
} )
82
82
83
- it ( 'should use title in the first h1 header' , async ( ) => {
84
- const resolved = await renderPageContent ( {
83
+ it ( 'should use title in the first h1 header' , ( ) => {
84
+ const resolved = renderPageContent ( {
85
85
app,
86
86
content : '# title in header' ,
87
87
filePath : null ,
@@ -92,8 +92,8 @@ const msg = 'msg'
92
92
expect ( resolved . title ) . toEqual ( 'title in header' )
93
93
} )
94
94
95
- it ( 'should use empty title' , async ( ) => {
96
- const resolved = await renderPageContent ( {
95
+ it ( 'should use empty title' , ( ) => {
96
+ const resolved = renderPageContent ( {
97
97
app,
98
98
content : '' ,
99
99
filePath : null ,
@@ -106,8 +106,8 @@ const msg = 'msg'
106
106
} )
107
107
108
108
describe ( 'page frontmatter' , ( ) => {
109
- it ( 'should merge markdown frontmatter and options frontmatter' , async ( ) => {
110
- const resolved = await renderPageContent ( {
109
+ it ( 'should merge markdown frontmatter and options frontmatter' , ( ) => {
110
+ const resolved = renderPageContent ( {
111
111
app,
112
112
content : `\
113
113
---
@@ -129,8 +129,8 @@ title: title in markdown frontmatter
129
129
} )
130
130
} )
131
131
132
- it ( 'should use fields from markdown frontmatter first' , async ( ) => {
133
- const resolved = await renderPageContent ( {
132
+ it ( 'should use fields from markdown frontmatter first' , ( ) => {
133
+ const resolved = renderPageContent ( {
134
134
app,
135
135
content : `\
136
136
---
0 commit comments