mirror of
https://github.com/NohamR/knowledge-kit.git
synced 2026-05-24 20:00:37 +00:00
feature: App 逆向防护
This commit is contained in:
@@ -66,13 +66,13 @@ module.exports = fetchCodeFiles
|
||||
6. 为了方便测试,在 `package.json` 文件中的 `scripts` 下添加描述 `"test": "mocha"`
|
||||
7. 为了更方便,我使用的是 iterm2,在 .zshrc 文件里设置别名 `alias nt="node test"`
|
||||
|
||||
提升效率的配置 .zshrc 可以查看文章: [Mac 终端效率神技](./../Chapter7 - Geek Talk/7.10.md)
|
||||
提升效率的配置 .zshrc 可以查看文章: [Mac 终端效率神技](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/Chapter7 - Geek Talk/7.10.md)
|
||||
|
||||
上面开发代码的测试代码如下:
|
||||
|
||||
```javascript
|
||||
// fetchCodeFiles.test.js
|
||||
const fetchCodeFiles = require('./../src/fetchCodeFiles'),
|
||||
const fetchCodeFiles = require('https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/src/fetchCodeFiles'),
|
||||
assert = require('assert')
|
||||
|
||||
describe("fetch all code files", () => {
|
||||
|
||||
Reference in New Issue
Block a user