@@ -44,8 +44,7 @@ describe('eleventy-plugin-mdjs-unified', () => {
44
44
const files = await renderEleventy ( './test-node/fixtures/md' ) ;
45
45
expect ( files ) . to . deep . equal ( [
46
46
{
47
- html :
48
- '<h1 id="first"><a aria-hidden="true" tabindex="-1" href="#first"><span class="icon icon-link"></span></a>First</h1>' ,
47
+ html : '<h1 id="first"><a aria-hidden="true" tabindex="-1" href="#first"><span class="icon icon-link"></span></a>First</h1>' ,
49
48
name : 'first/index.html' ,
50
49
} ,
51
50
] ) ;
@@ -65,8 +64,7 @@ describe('eleventy-plugin-mdjs-unified', () => {
65
64
const files = await renderEleventy ( './test-node/fixtures/mdjs-import' ) ;
66
65
expect ( files ) . to . deep . equal ( [
67
66
{
68
- html :
69
- '<p>first</p>\n <script type="module" src="/first/__mdjs-stories.js" mdjs-setup></script>\n ' ,
67
+ html : '<p>first</p>\n <script type="module" src="/first/__mdjs-stories.js" mdjs-setup></script>\n ' ,
70
68
name : 'first/index.html' ,
71
69
} ,
72
70
] ) ;
@@ -76,8 +74,7 @@ describe('eleventy-plugin-mdjs-unified', () => {
76
74
const files = await renderEleventy ( './test-node/fixtures/mdjs-import-in-subpage' ) ;
77
75
expect ( files ) . to . deep . equal ( [
78
76
{
79
- html :
80
- '<p>first</p>\n <script type="module" src="/subpage/first/__mdjs-stories.js" mdjs-setup></script>\n ' ,
77
+ html : '<p>first</p>\n <script type="module" src="/subpage/first/__mdjs-stories.js" mdjs-setup></script>\n ' ,
81
78
name : 'subpage/first/index.html' ,
82
79
} ,
83
80
] ) ;
@@ -87,8 +84,7 @@ describe('eleventy-plugin-mdjs-unified', () => {
87
84
const files = await renderEleventy ( './test-node/fixtures/mdjs-import-index' ) ;
88
85
expect ( files ) . to . deep . equal ( [
89
86
{
90
- html :
91
- '<p>index</p>\n <script type="module" src="/__mdjs-stories.js" mdjs-setup></script>\n ' ,
87
+ html : '<p>index</p>\n <script type="module" src="/__mdjs-stories.js" mdjs-setup></script>\n ' ,
92
88
name : 'index.html' ,
93
89
} ,
94
90
] ) ;
@@ -98,8 +94,7 @@ describe('eleventy-plugin-mdjs-unified', () => {
98
94
const files = await renderEleventy ( './test-node/fixtures/plugin-configure' ) ;
99
95
expect ( files ) . to . deep . equal ( [
100
96
{
101
- html :
102
- '<h1 id="first"><a class="anchor" href="#first"><span class="icon icon-link"></span></a>First</h1>' ,
97
+ html : '<h1 id="first"><a class="anchor" href="#first"><span class="icon icon-link"></span></a>First</h1>' ,
103
98
name : 'first/index.html' ,
104
99
} ,
105
100
] ) ;
0 commit comments