Skip to content

Commit

Permalink
fix: optional options (#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
stone-jin committed Jan 21, 2021
1 parent 23ad9a2 commit ed3f659
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/mock/src/utils.ts
Expand Up @@ -75,6 +75,8 @@ export async function create<
DefaultFramework = require(customFrameworkName as string).Framework;
}

options = options ?? {} as U;

// got options from framework
if (DefaultFramework) {
framework = new DefaultFramework();
Expand Down

0 comments on commit ed3f659

Please sign in to comment.