1 Star 3 Fork 2

hero_hezf/im-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
home.test.js 462 Bytes
一键复制 编辑 原始数据 按行查看 历史
hero_hezf 提交于 6年前 . init
'use strict';
const { app, assert } = require('egg-mock/bootstrap');
describe('test/app/controller/home.test.js', () => {
it('should assert', () => {
const pkg = require('../../../package.json');
assert(app.config.keys.startsWith(pkg.name));
// const ctx = app.mockContext({});
// yield ctx.service.xx();
});
it('should GET /', () => {
return app.httpRequest()
.get('/')
.expect('hi, egg')
.expect(200);
});
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/hezf/im-server.git
git@gitee.com:hezf/im-server.git
hezf
im-server
im-server
master

搜索帮助

371d5123 14472233 46e8bd33 14472233