Skip to content

Commit

Permalink
fix: try to export container method
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Aug 8, 2018
1 parent c26006a commit 7921cdb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/midway-mock/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ const mm = require('egg-mock');
interface MidwayMock extends EggMock {
container: typeof mockContainer;
}

const mm2: MidwayMock = {
...mm,
mockContainer
};

mm2.container = mockContainer;
module.exports = mm2;

export default mm2;

0 comments on commit 7921cdb

Please sign in to comment.