Skip to content

Commit 10d8324

Browse files
committed
fix: change some code styling
1 parent ab2d0ee commit 10d8324

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const runFixtures = (fixtures, fullPath, withAwait) => (fixtureName) => {
6767
.filter(([name]) => (!fixtureName || fixtureName === name))
6868
.forEach(([name, fixture]) => it(`should render component with ${name} fixture`, async () => {
6969
const comp = await render(fullPath, withAwait)(clone(fixture));
70+
7071
expect(Array.from(document.body.childNodes)).toMatchSnapshot();
7172
comp.destroy();
7273
}));
@@ -76,10 +77,7 @@ const runFixtures = (fixtures, fullPath, withAwait) => (fixtureName) => {
7677
const helpers = {
7778
createEvent: eventName => (customEvent => (customEvent.initEvent(eventName, true, true) || customEvent))(document.createEvent('Event')),
7879
defer: () => (toReturn => Object.assign(toReturn, {
79-
promise: new Promise((resolve, reject) => Object.assign(toReturn, {
80-
resolve,
81-
reject,
82-
})),
80+
promise: new Promise((resolve, reject) => Object.assign(toReturn, { resolve, reject })),
8381
}))({}),
8482
};
8583
const tester = (componentPath, { withoutFixtures, withAwait } = {}) => {

0 commit comments

Comments
 (0)