Skip to content

Commit 7ddd59a

Browse files
committed
fix styles
1 parent 8df3883 commit 7ddd59a

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"eslint-config-standard": "5.3.5",
2727
"eslint-config-standard-jsx": "3.0.0",
2828
"eslint-config-standard-react": "3.0.0",
29+
"eslint-plugin-promise": "2.0.1",
2930
"eslint-plugin-react": "6.1.2",
3031
"eslint-plugin-standard": "2.0.0",
3132
"gulp": "3.9.1",

test/index.js

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ test('animate', (t) => {
4242

4343
test('Keyframes events', (t) => {
4444
const container = document.createElement('div');
45-
const onStart = () => onStart.called = true;
46-
const onEnd = () => onEnd.called = true;
45+
const onStart = () => {
46+
onStart.called = true;
47+
};
48+
const onEnd = () => {
49+
onEnd.called = true;
50+
};
4751
render(
4852
<Keyframes onStart={onStart} onEnd={onEnd}>
4953
<Frame duration={100}>foo</Frame>
@@ -61,7 +65,9 @@ test('Keyframes events', (t) => {
6165

6266
test('Frame event', (t) => {
6367
const container = document.createElement('div');
64-
const onRender = () => onRender.called = true;
68+
const onRender = () => {
69+
onRender.called = true;
70+
};
6571
render(
6672
<Keyframes>
6773
<Frame duration={100}>foo</Frame>
@@ -91,8 +97,12 @@ test('set component', (t) => {
9197

9298
test('Infinite loop', (t) => {
9399
const container = document.createElement('div');
94-
const onStart = () => onStart.called = true;
95-
const onEnd = () => onEnd.called = true;
100+
const onStart = () => {
101+
onStart.called = true;
102+
};
103+
const onEnd = () => {
104+
onEnd.called = true;
105+
};
96106
render(
97107
<Keyframes onStart={onStart} onEnd={onEnd} loop>
98108
<Frame duration={100}>foo</Frame>
@@ -110,8 +120,12 @@ test('Infinite loop', (t) => {
110120

111121
test('Finite loop', (t) => {
112122
const container = document.createElement('div');
113-
const onStart = () => onStart.called = true;
114-
const onEnd = () => onEnd.called = true;
123+
const onStart = () => {
124+
onStart.called = true;
125+
};
126+
const onEnd = () => {
127+
onEnd.called = true;
128+
};
115129
render(
116130
<Keyframes onStart={onStart} onEnd={onEnd} loop={3}>
117131
<Frame duration={100}>foo</Frame>

0 commit comments

Comments
 (0)