File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ exports[`--config 1`] = `
5
5
<html >
6
6
<head >
7
7
<meta charset = ' utf-8' />
8
- <title > | Documentation</title >
8
+ <title >documentation | Documentation</title >
9
9
<meta name = ' viewport' content = ' width=device-width,initial-scale=1' >
10
10
<link href = ' assets/bass.css' type = ' text/css' rel = ' stylesheet' />
11
11
<link href = ' assets/style.css' type = ' text/css' rel = ' stylesheet' />
@@ -18,7 +18,7 @@ exports[`--config 1`] = `
18
18
<div id = ' split-left' class = ' overflow-auto fs0 height-viewport-100' >
19
19
<div class = ' py1 px2' >
20
20
<h3 class = ' mb0 no-anchor' >documentation</h3 >
21
- <div class = ' mb1' ></div >
21
+ <div class = ' mb1' ><code ></ code >< /div >
22
22
<input
23
23
placeholder = ' Filter'
24
24
id = ' filter-input'
Original file line number Diff line number Diff line change @@ -1387,7 +1387,7 @@ exports[`html nested.input.js 1`] = `
1387
1387
<html>
1388
1388
<head>
1389
1389
<meta charset='utf-8' />
1390
- <title> | Documentation</title>
1390
+ <title>-alpha.0 | Documentation</title>
1391
1391
<meta name='viewport' content='width=device-width,initial-scale=1'>
1392
1392
<link href='assets/bass.css' type='text/css' rel='stylesheet' />
1393
1393
<link href='assets/style.css' type='text/css' rel='stylesheet' />
@@ -1400,7 +1400,7 @@ exports[`html nested.input.js 1`] = `
1400
1400
<div id='split-left' class='overflow-auto fs0 height-viewport-100'>
1401
1401
<div class='py1 px2'>
1402
1402
<h3 class='mb0 no-anchor'>documentation</h3>
1403
- <div class='mb1'></div>
1403
+ <div class='mb1'><code>9.0.0-alpha.0</code>< /div>
1404
1404
<input
1405
1405
placeholder='Filter'
1406
1406
id='filter-input'
Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ describe('invalid arguments', function() {
159
159
} ) ;
160
160
} ) ;
161
161
162
+ const semver = / \b v ? (?: 0 | [ 1 - 9 ] \d * ) \. (?: 0 | [ 1 - 9 ] \d * ) \. (?: 0 | [ 1 - 9 ] \d * ) (?: - [ \d a - z - ] + (?: \. [ \d a - z - ] + ) * ) ? (?: \+ [ \d a - z - ] + (?: \. [ \d a - z - ] + ) * ) ? \b / gi;
162
163
test ( '--config' , async function ( ) {
163
164
const dst = path . join ( os . tmpdir ( ) , ( Date . now ( ) + Math . random ( ) ) . toString ( ) ) ;
164
165
fs . mkdirSync ( dst ) ;
@@ -172,9 +173,8 @@ test('--config', async function() {
172
173
false
173
174
) ;
174
175
let output = fs . readFileSync ( outputIndex , 'utf8' ) ;
175
- output = output
176
- . replace ( / d o c u m e n t a t i o n \d + \. \d + \. \d + / g, '' )
177
- . replace ( / < c o d e > \d + \. \d + \. \d + < \/ c o d e > / g, '' ) ;
176
+ const version = require ( '../package.json' ) . version ;
177
+ output = output . replace ( new RegExp ( version . replace ( / \. / g, '\\.' ) , 'g' ) , '' ) ;
178
178
expect ( output ) . toMatchSnapshot ( ) ;
179
179
} ) ;
180
180
You can’t perform that action at this time.
0 commit comments