Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit bfe839f

Browse files
authored
chore(package): update standard to version 10.0.0 (#22)
* chore(package): update standard to version 10.0.0 https://greenkeeper.io/ * fix linting rules and generate yarn.lock
1 parent ff2b4f1 commit bfe839f

File tree

7 files changed

+180
-33
lines changed

7 files changed

+180
-33
lines changed

__tests__/components/EmptyHandler-test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('EmptyHandler', () => {
1515
<EmptyHandler
1616
checkedProperty={componentPropsFilled.list}
1717
message={emptyMessage}
18-
/>,
18+
/>
1919
)
2020
expect(tree).toMatchSnapshot()
2121
})
@@ -27,7 +27,7 @@ describe('EmptyHandler', () => {
2727
message={emptyMessage}
2828
>
2929
<TestComponent />
30-
</EmptyHandler>,
30+
</EmptyHandler>
3131
)
3232
expect(tree.toJSON()).toMatchSnapshot()
3333
})
@@ -40,7 +40,7 @@ describe('EmptyHandler', () => {
4040
message={emptyMessage}
4141
>
4242
<TestComponent />
43-
</EmptyHandler>,
43+
</EmptyHandler>
4444
)
4545
expect(tree.toJSON()).toMatchSnapshot()
4646
})
@@ -50,7 +50,7 @@ describe('EmptyHandler', () => {
5050
<EmptyHandler
5151
checkedProperty={componentPropsEmpty.list}
5252
message={emptyMessage}
53-
/>,
53+
/>
5454
)
5555
expect(tree.toJSON()).toMatchSnapshot()
5656
})
@@ -59,7 +59,7 @@ describe('EmptyHandler', () => {
5959
const tree = renderer.create(
6060
<EmptyHandler message={emptyMessage}>
6161
<TestComponent />
62-
</EmptyHandler>,
62+
</EmptyHandler>
6363
)
6464
expect(tree.toJSON()).toMatchSnapshot()
6565
})

__tests__/components/ErrorEmptyHandler-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('ErrorEmptyHandler', () => {
1010
const tree = renderer.create(
1111
<ErrorEmptyHandler errorMessage='failed to load articles' emptyMessage='0 Articles found'>
1212
<Component />
13-
</ErrorEmptyHandler>,
13+
</ErrorEmptyHandler>
1414
)
1515

1616
expect(tree.toJSON()).toMatchSnapshot()
@@ -24,7 +24,7 @@ describe('ErrorEmptyHandler', () => {
2424
emptyMessage='0 Articles found'
2525
>
2626
<Component />
27-
</ErrorEmptyHandler>,
27+
</ErrorEmptyHandler>
2828
)
2929

3030
expect(tree.toJSON()).toMatchSnapshot()
@@ -34,7 +34,7 @@ describe('ErrorEmptyHandler', () => {
3434
const tree = renderer.create(
3535
<ErrorEmptyHandler checkedProperty={checkedProperty} emptyMessage='0 Articles found'>
3636
<Component />
37-
</ErrorEmptyHandler>,
37+
</ErrorEmptyHandler>
3838
)
3939

4040
expect(tree.toJSON()).toMatchSnapshot()

__tests__/components/ErrorHandler-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('ErrorHandler', () => {
1212
const tree = renderer.create(
1313
<ErrorHandler>
1414
<TestComponent />
15-
</ErrorHandler>,
15+
</ErrorHandler>
1616
)
1717
expect(tree.toJSON()).toMatchSnapshot()
1818
})
@@ -29,7 +29,7 @@ describe('ErrorHandler', () => {
2929
message={errorMessage}
3030
>
3131
<TestComponent />
32-
</ErrorHandler>,
32+
</ErrorHandler>
3333
)
3434
expect(tree.toJSON()).toMatchSnapshot()
3535
})
@@ -38,7 +38,7 @@ describe('ErrorHandler', () => {
3838
const tree = renderer.create(
3939
<ErrorHandler message={errorMessage}>
4040
<TestComponent />
41-
</ErrorHandler>,
41+
</ErrorHandler>
4242
)
4343
expect(tree.toJSON()).toMatchSnapshot()
4444
})

__tests__/components/Handler-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('Handler', () => {
1010
const tree = renderer.create(
1111
<Handler checkedProperty={checkedProperty} emptyMessage='0 Articles found'>
1212
<Component />
13-
</Handler>,
13+
</Handler>
1414
)
1515

1616
expect(tree.toJSON()).toMatchSnapshot()
@@ -20,7 +20,7 @@ describe('Handler', () => {
2020
const tree = renderer.create(
2121
<Handler showComponentWhileLoading={false} checkedProperty={checkedProperty} emptyMessage='0 Articles found'>
2222
<Component />
23-
</Handler>,
23+
</Handler>
2424
)
2525

2626
expect(tree.toJSON()).toMatchSnapshot()
@@ -35,7 +35,7 @@ describe('Handler', () => {
3535
emptyMessage='0 Articles found'
3636
>
3737
<Component />
38-
</Handler>,
38+
</Handler>
3939
)
4040

4141
expect(tree.toJSON()).toMatchSnapshot()

__tests__/components/LoadingHandler-test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ describe('LoadingHandler', () => {
1010
const tree = renderer.create(
1111
<LoadingHandler loading={false}>
1212
<TestComponent />
13-
</LoadingHandler>,
13+
</LoadingHandler>
1414
)
1515
expect(tree.toJSON()).toMatchSnapshot()
1616
})
1717

1818
test('returns null when called with loading false and no component', () => {
1919
const tree = renderer.create(
20-
<LoadingHandler loading={false} />,
20+
<LoadingHandler loading={false} />
2121
)
2222
expect(tree).toMatchSnapshot()
2323
})
@@ -26,7 +26,7 @@ describe('LoadingHandler', () => {
2626
const tree = renderer.create(
2727
<LoadingHandler LoadingComponent={LoadingComponent}>
2828
<TestComponent />
29-
</LoadingHandler>,
29+
</LoadingHandler>
3030
)
3131
expect(tree.toJSON()).toMatchSnapshot()
3232
})
@@ -35,7 +35,7 @@ describe('LoadingHandler', () => {
3535
const tree = renderer.create(
3636
<LoadingHandler message='keep keep loading'>
3737
<TestComponent />
38-
</LoadingHandler>,
38+
</LoadingHandler>
3939
)
4040
expect(tree.toJSON()).toMatchSnapshot()
4141
})
@@ -44,7 +44,7 @@ describe('LoadingHandler', () => {
4444
const tree = renderer.create(
4545
<LoadingHandler>
4646
<TestComponent />
47-
</LoadingHandler>,
47+
</LoadingHandler>
4848
)
4949
expect(tree.toJSON()).toMatchSnapshot()
5050
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"react-test-renderer": "^15.4.1",
5050
"rimraf": "^2.5.4",
5151
"snazzy": "^6.0.0",
52-
"standard": "^9.0.2",
52+
"standard": "^10.0.0",
5353
"webpack": "^2.3.0"
5454
},
5555
"peerDependencies": {

0 commit comments

Comments
 (0)