1 Star 1 Fork 64

小小程序员/moyu-server

forked from 舒小凯/apiflow-server 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
home.test.js 462 Bytes
一键复制 编辑 原始数据 按行查看 历史
舒小凯 提交于 2020-10-08 22:46 . 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 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/miskiller/moyu-server.git
git@gitee.com:miskiller/moyu-server.git
miskiller
moyu-server
moyu-server
master

搜索帮助