Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run the test #460

Closed
shulhi opened this issue Jan 21, 2014 · 1 comment
Closed

Run the test #460

shulhi opened this issue Jan 21, 2014 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@shulhi
Copy link

shulhi commented Jan 21, 2014

Sorry as this is such a newbie question. But how do I run the test?

I did make test but it is not giving me anything. I also tried running mocha but it is giving me an error.

$ ~> node_modules/mocha/bin/mocha

/home/shulhi/opensource/hexo/test/console/clean.js:7
    publicDir = hexo.public_dir;
                ^
ReferenceError: hexo is not defined
    at Suite.<anonymous> (/home/shulhi/opensource/hexo/test/console/clean.js:7:17)
    at context.describe.context.context (/home/shulhi/opensource/hexo/node_modules/mocha/lib/interfaces/bdd.js:73:10)
    at Object.<anonymous> (/home/shulhi/opensource/hexo/test/console/clean.js:5:1)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Suite.<anonymous> (/home/shulhi/opensource/hexo/test/console.test.js:2:3)
    at context.describe.context.context (/home/shulhi/opensource/hexo/node_modules/mocha/lib/interfaces/bdd.js:73:10)
    at Object.<anonymous> (/home/shulhi/opensource/hexo/test/console.test.js:1:63)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at /home/shulhi/opensource/hexo/node_modules/mocha/lib/mocha.js:172:27
    at Array.forEach (native)
    at Mocha.loadFiles (/home/shulhi/opensource/hexo/node_modules/mocha/lib/mocha.js:169:14)
    at Mocha.run (/home/shulhi/opensource/hexo/node_modules/mocha/lib/mocha.js:356:31)
    at Object.<anonymous> (/home/shulhi/opensource/hexo/node_modules/mocha/bin/_mocha:359:16)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3
@shulhi shulhi closed this as completed Jan 22, 2014
@shulhi shulhi reopened this Jan 22, 2014
@tommy351
Copy link
Member

Duplicated: #423

zhipengyan pushed a commit to zhipengyan/hexo that referenced this issue Apr 4, 2016
调整文章页面显示样式
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants