File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -52,24 +52,6 @@ describe('hexo', () => {
52
52
53
53
it ( 'should watch SIGINT signal' ) ;
54
54
55
- it ( 'load hexo module in current folder' , async ( ) => {
56
- const spy = sinon . spy ( ) ;
57
- const baseDir = join ( __dirname , 'find_pkg_test' ) ;
58
- const pkgPath = join ( baseDir , 'package.json' ) ;
59
-
60
- await writeFile ( pkgPath , '{"hexo": {}}' ) ;
61
- const hexo = proxyquire ( '../../dist/hexo' , {
62
- './console' ( ctx ) {
63
- ctx . extend . console . register ( 'help' , spy ) ;
64
- }
65
- } ) ;
66
-
67
- await hexo ( baseDir , { _ : [ ] } ) ;
68
- spy . calledOnce . should . be . true ;
69
- await unlink ( pkgPath ) ;
70
- await rmdir ( baseDir ) ;
71
- } ) ;
72
-
73
55
it ( 'load hexo module in parent folder recursively' ) ;
74
56
75
57
it ( 'display error message if failed to load hexo module' ) ;
You can’t perform that action at this time.
0 commit comments