File tree Expand file tree Collapse file tree 3 files changed +16
-10
lines changed
packages/@vuepress/markdown/__tests__ Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,18 @@ exports[`snippet import snippet 1`] = `
10
10
exports [` snippet import snippet with highlight multiple lines 1` ] = `
11
11
<div class = " highlight-lines" >
12
12
<div class = " highlighted" > </div >
13
- </div >
13
+ <div class = " highlighted" > </div >
14
+ <div class = " highlighted" > </div ><br >
15
+ </div >export default function () {
16
+ // ..
17
+ }
14
18
`;
15
19
16
20
exports[`snippet import snippet with highlight single line 1`] = `
17
21
<div class = " highlight-lines" >
18
- <div class = " highlighted" > </div >
19
- </div >
22
+ <div class = " highlighted" > </div ><br >
23
+ <div class = " highlighted" > </div ><br >
24
+ </div >export default function () {
25
+ // ..
26
+ }
20
27
`;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import snippet from '../lib/snippet.js'
4
4
import highlightLines from '../lib/highlightLines.js'
5
5
6
6
const md = Md ( ) . use ( snippet )
7
- const mdH = Md ( ) . use ( snippet ) . use ( highlightLines )
7
+ const mdH = Md ( ) . use ( highlightLines ) . use ( snippet )
8
8
9
9
describe ( 'snippet' , ( ) => {
10
10
test ( 'import snippet' , ( ) => {
Original file line number Diff line number Diff line change @@ -13,12 +13,11 @@ if (args.p) {
13
13
rawArgs . splice ( i , 2 )
14
14
}
15
15
16
- const jestRunner = createJestRunner (
17
- [
18
- '--config' , 'scripts/jest.config.js' ,
19
- '--runInBand' ,
20
- ...( regex ? [ regex ] : [ ] )
21
- ] )
16
+ const jestRunner = createJestRunner ( [
17
+ '--config' , 'scripts/jest.config.js' ,
18
+ '--runInBand' ,
19
+ ...( regex ? [ regex ] : [ ] )
20
+ ] )
22
21
23
22
// ensure the basic temp files were genereatod
24
23
createApp ( {
You can’t perform that action at this time.
0 commit comments