Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试为 Hexo 创建一个插件,它位于脚本文件夹中。我正在尝试为它编写测试作为开发它jasmine-node。如何在我的规范文件中进行数据库查询?例如,我没有site可用的变量,写作require('site')并不能解决问题。
jasmine-node
site
require('site')
您在寻找_config.yml可变网址吗?
_config.yml
如果是这样,您可以在插件内部通过this.config.url.
this.config.url