Skip to content

Commit

Permalink
Merge pull request #101 from matmanjs/v2.1.5
Browse files Browse the repository at this point in the history
refactor: 优化用例
  • Loading branch information
HeLinJiang authored Jul 2, 2018
2 parents 3708d35 + a377fa6 commit 948ed7a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions test/data/fixtures/mock_modules/return-function-promise.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
module.exports = () => {
return Promise.resolve({
name: 'return-function-promise',
age: 16
module.exports = (params, req) => {
return new Promise((resolve, reject) => {
// Do something here ...

setTimeout(() => {
resolve({
name: 'return-function-promise',
age: 16
});
}, 1000);
});
};

0 comments on commit 948ed7a

Please sign in to comment.