File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ function resolve(h, url) {
7
7
return ''
8
8
}
9
9
10
+ /* istanbul ignore next - ignored for older Node */
10
11
if ( h . frozenBaseURL && typeof URL !== 'undefined' ) {
11
12
return String ( new URL ( url , h . frozenBaseURL ) )
12
13
}
Original file line number Diff line number Diff line change @@ -90,6 +90,8 @@ test('fixtures', function(t) {
90
90
t . end ( )
91
91
92
92
function check ( name ) {
93
+ var ignore = / ^ b a s e \b / . test ( name ) && typeof URL === 'undefined'
94
+
93
95
t . test ( name , function ( st ) {
94
96
var input = String (
95
97
fs . readFileSync ( path . join ( fixtures , name , 'index.html' ) )
@@ -128,6 +130,11 @@ test('fixtures', function(t) {
128
130
assert ( tree )
129
131
} , 'should produce valid MDAST nodes' )
130
132
133
+ if ( ignore ) {
134
+ st . end ( )
135
+ return
136
+ }
137
+
131
138
if ( ! config || config . stringify !== false ) {
132
139
st . deepEqual (
133
140
remark . stringify ( tree ) ,
You can’t perform that action at this time.
0 commit comments