@@ -117,15 +117,15 @@ describe("blockREADME", () => {
117
117
` ) ;
118
118
} ) ;
119
119
120
- test ( "options.explainer" , ( ) => {
120
+ test ( "options.documentation.readme. explainer" , ( ) => {
121
121
const creation = testBlock ( blockREADME , {
122
122
options : {
123
123
...optionsBase ,
124
124
documentation : {
125
125
...optionsBase . documentation ,
126
126
readme : {
127
127
...optionsBase . documentation . readme ,
128
- explainer : "\nAnd a one.\nAnd a two.\n " ,
128
+ explainer : "And a one.\nAnd a two." ,
129
129
} ,
130
130
} ,
131
131
} ,
@@ -142,11 +142,9 @@ describe("blockREADME", () => {
142
142
<img alt="💪 TypeScript: Strict" src="https://img.shields.io/badge/%F0%9F%92%AA_typescript-strict-21bb42.svg" />
143
143
</p>
144
144
145
-
146
145
And a one.
147
146
And a two.
148
147
149
-
150
148
## Usage
151
149
152
150
Test usage.
@@ -162,6 +160,48 @@ describe("blockREADME", () => {
162
160
` ) ;
163
161
} ) ;
164
162
163
+ test ( "options.documentation.readme.footnotes" , ( ) => {
164
+ const creation = testBlock ( blockREADME , {
165
+ options : {
166
+ ...optionsBase ,
167
+ documentation : {
168
+ ...optionsBase . documentation ,
169
+ readme : {
170
+ ...optionsBase . documentation . readme ,
171
+ footnotes : "And a one.\nAnd a two." ,
172
+ } ,
173
+ } ,
174
+ } ,
175
+ } ) ;
176
+
177
+ expect ( creation ) . toMatchInlineSnapshot ( `
178
+ {
179
+ "files": {
180
+ "README.md": "<h1 align="center">Test Title</h1>
181
+
182
+ <p align="center">Test description</p>
183
+
184
+ <p align="center">
185
+ <img alt="💪 TypeScript: Strict" src="https://img.shields.io/badge/%F0%9F%92%AA_typescript-strict-21bb42.svg" />
186
+ </p>
187
+
188
+ ## Usage
189
+
190
+ Test usage.
191
+
192
+ ## Development
193
+
194
+ See [\`.github/CONTRIBUTING.md\`](./.github/CONTRIBUTING.md), then [\`.github/DEVELOPMENT.md\`](./.github/DEVELOPMENT.md).
195
+ Thanks! 💖
196
+
197
+
198
+ And a one.
199
+ And a two.",
200
+ },
201
+ }
202
+ ` ) ;
203
+ } ) ;
204
+
165
205
test ( "options.logo without sizing" , ( ) => {
166
206
const creation = testBlock ( blockREADME , {
167
207
options : {
0 commit comments