This repository was archived by the owner on Aug 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 25
25
"hast-util-is-element" : " ^1.0.0"
26
26
},
27
27
"devDependencies" : {
28
- "browserify" : " ^14 .0.0" ,
28
+ "browserify" : " ^16 .0.0" ,
29
29
"esmangle" : " ^1.0.1" ,
30
- "nyc" : " ^11 .0.0" ,
31
- "remark-cli" : " ^4 .0.0" ,
32
- "remark-preset-wooorm" : " ^3 .0.0" ,
30
+ "nyc" : " ^12 .0.0" ,
31
+ "remark-cli" : " ^5 .0.0" ,
32
+ "remark-preset-wooorm" : " ^4 .0.0" ,
33
33
"tape" : " ^4.4.0" ,
34
- "xo" : " ^0.18 .0"
34
+ "xo" : " ^0.21 .0"
35
35
},
36
36
"scripts" : {
37
37
"build-md" : " remark . --quiet --frail --output" ,
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
var test = require ( 'tape' ) ;
4
- var menuState = require ( './ ' ) ;
4
+ var menuState = require ( '.' ) ;
5
5
6
6
test ( 'menuState' , function ( t ) {
7
7
t . equal ( menuState ( ) , null , 'should return `null` without nodes' ) ;
@@ -84,17 +84,17 @@ test('menuState', function (t) {
84
84
) ;
85
85
86
86
t . equal (
87
- menuState ( [
88
- {
89
- type : 'element' ,
90
- tagName : 'menu' ,
91
- properties : { type : 'context' }
92
- } ,
93
- null ,
94
- { type : 'element' , tagName : 'menu' }
95
- ] ) ,
96
- 'toolbar' ,
97
- 'should not walk higher than non-elements'
87
+ menuState ( [
88
+ {
89
+ type : 'element' ,
90
+ tagName : 'menu' ,
91
+ properties : { type : 'context' }
92
+ } ,
93
+ null ,
94
+ { type : 'element' , tagName : 'menu' }
95
+ ] ) ,
96
+ 'toolbar' ,
97
+ 'should not walk higher than non-elements'
98
98
) ;
99
99
100
100
t . equal (
You can’t perform that action at this time.
0 commit comments