1234567891011 |
- import assert from 'assert';
- import { app } from 'egg-mock/bootstrap';
- import { HelloService } from '@/module/foo/service/HelloService';
- describe('test/app/module/foo/service/HelloService.test.js', () => {
- it('should hello work', async () => {
- const helloService = await app.getEggObject(HelloService);
- const msg = await helloService.hello('123456');
- assert.equal(msg, 'hello, 123456');
- });
- });
|