mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 23:01:16 +08:00
pass reject to testMethod
This commit is contained in:
parent
4dc4cd0575
commit
e5c217b45a
@ -11,9 +11,10 @@ function snapshotTest({ item, asyncJest, framework, testMethod, testMethodParams
|
||||
it(
|
||||
name,
|
||||
() =>
|
||||
new Promise((done) =>
|
||||
new Promise((done, reject) =>
|
||||
testMethod({
|
||||
done,
|
||||
reject,
|
||||
story: item,
|
||||
context,
|
||||
...testMethodParams,
|
||||
|
Loading…
x
Reference in New Issue
Block a user