1 Star 2 Fork 0

MacXiang/egg-cache

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test{{name}}.test.js 398 Bytes
一键复制 编辑 原始数据 按行查看 历史
MacXiang 提交于 2021-02-11 21:12 +08:00 . 初次上传
'use strict';
const mock = require('egg-mock');
describe('test/cache.test.js', () => {
let app;
before(() => {
app = mock.app({
baseDir: 'apps/cache-test',
});
return app.ready();
});
after(() => app.close());
afterEach(mock.restore);
it('should GET /', () => {
return app.httpRequest()
.get('/')
.expect('hi, cache')
.expect(200);
});
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/MacXiang/egg-cache.git
git@gitee.com:MacXiang/egg-cache.git
MacXiang
egg-cache
egg-cache
master

搜索帮助