Skip to content

Commit

Permalink
fix: fix decorator i midway-mock
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Mar 5, 2019
1 parent 3504391 commit 60367fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/midway-mock/package.json
Expand Up @@ -31,9 +31,9 @@
],
"license": "MIT",
"devDependencies": {
"@midwayjs/decorator": "^1.4.3",
"injection": "^1.4.1",
"midway-bin": "^1.4.3",
"midway-core": "^1.4.3"
"midway-bin": "^1.4.3"
},
"dependencies": {
"egg-mock": "^3.21.0",
Expand Down
@@ -1,5 +1,5 @@
import {async, init, provide, inject} from 'injection';
import {config, plugin} from 'midway-core';
import {config, plugin} from '@midwayjs/decorator';

@async()
@provide()
Expand Down
2 changes: 1 addition & 1 deletion packages/midway-mock/test/mock_container.test.ts
Expand Up @@ -20,7 +20,7 @@ describe('test/mock_container.test.ts', () => {
it('should mock service success', async () => {
const service = await container.getAsync(BaseService);
mm.default(service, 'getData', async name => {
return await new Promise(resolve => {
return new Promise(resolve => {
setTimeout(() => {
resolve(`hello ${name}`);
}, 100);
Expand Down

0 comments on commit 60367fb

Please sign in to comment.