Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions __tests__/components/EmptyHandler-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('EmptyHandler', () => {
<EmptyHandler
checkedProperty={componentPropsFilled.list}
message={emptyMessage}
/>,
/>
)
expect(tree).toMatchSnapshot()
})
Expand All @@ -27,7 +27,7 @@ describe('EmptyHandler', () => {
message={emptyMessage}
>
<TestComponent />
</EmptyHandler>,
</EmptyHandler>
)
expect(tree.toJSON()).toMatchSnapshot()
})
Expand All @@ -40,7 +40,7 @@ describe('EmptyHandler', () => {
message={emptyMessage}
>
<TestComponent />
</EmptyHandler>,
</EmptyHandler>
)
expect(tree.toJSON()).toMatchSnapshot()
})
Expand All @@ -50,7 +50,7 @@ describe('EmptyHandler', () => {
<EmptyHandler
checkedProperty={componentPropsEmpty.list}
message={emptyMessage}
/>,
/>
)
expect(tree.toJSON()).toMatchSnapshot()
})
Expand All @@ -59,7 +59,7 @@ describe('EmptyHandler', () => {
const tree = renderer.create(
<EmptyHandler message={emptyMessage}>
<TestComponent />
</EmptyHandler>,
</EmptyHandler>
)
expect(tree.toJSON()).toMatchSnapshot()
})
Expand Down
6 changes: 3 additions & 3 deletions __tests__/components/ErrorEmptyHandler-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('ErrorEmptyHandler', () => {
const tree = renderer.create(
<ErrorEmptyHandler errorMessage='failed to load articles' emptyMessage='0 Articles found'>
<Component />
</ErrorEmptyHandler>,
</ErrorEmptyHandler>
)

expect(tree.toJSON()).toMatchSnapshot()
Expand All @@ -24,7 +24,7 @@ describe('ErrorEmptyHandler', () => {
emptyMessage='0 Articles found'
>
<Component />
</ErrorEmptyHandler>,
</ErrorEmptyHandler>
)

expect(tree.toJSON()).toMatchSnapshot()
Expand All @@ -34,7 +34,7 @@ describe('ErrorEmptyHandler', () => {
const tree = renderer.create(
<ErrorEmptyHandler checkedProperty={checkedProperty} emptyMessage='0 Articles found'>
<Component />
</ErrorEmptyHandler>,
</ErrorEmptyHandler>
)

expect(tree.toJSON()).toMatchSnapshot()
Expand Down
6 changes: 3 additions & 3 deletions __tests__/components/ErrorHandler-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('ErrorHandler', () => {
const tree = renderer.create(
<ErrorHandler>
<TestComponent />
</ErrorHandler>,
</ErrorHandler>
)
expect(tree.toJSON()).toMatchSnapshot()
})
Expand All @@ -29,7 +29,7 @@ describe('ErrorHandler', () => {
message={errorMessage}
>
<TestComponent />
</ErrorHandler>,
</ErrorHandler>
)
expect(tree.toJSON()).toMatchSnapshot()
})
Expand All @@ -38,7 +38,7 @@ describe('ErrorHandler', () => {
const tree = renderer.create(
<ErrorHandler message={errorMessage}>
<TestComponent />
</ErrorHandler>,
</ErrorHandler>
)
expect(tree.toJSON()).toMatchSnapshot()
})
Expand Down
6 changes: 3 additions & 3 deletions __tests__/components/Handler-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('Handler', () => {
const tree = renderer.create(
<Handler checkedProperty={checkedProperty} emptyMessage='0 Articles found'>
<Component />
</Handler>,
</Handler>
)

expect(tree.toJSON()).toMatchSnapshot()
Expand All @@ -20,7 +20,7 @@ describe('Handler', () => {
const tree = renderer.create(
<Handler showComponentWhileLoading={false} checkedProperty={checkedProperty} emptyMessage='0 Articles found'>
<Component />
</Handler>,
</Handler>
)

expect(tree.toJSON()).toMatchSnapshot()
Expand All @@ -35,7 +35,7 @@ describe('Handler', () => {
emptyMessage='0 Articles found'
>
<Component />
</Handler>,
</Handler>
)

expect(tree.toJSON()).toMatchSnapshot()
Expand Down
10 changes: 5 additions & 5 deletions __tests__/components/LoadingHandler-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ describe('LoadingHandler', () => {
const tree = renderer.create(
<LoadingHandler loading={false}>
<TestComponent />
</LoadingHandler>,
</LoadingHandler>
)
expect(tree.toJSON()).toMatchSnapshot()
})

test('returns null when called with loading false and no component', () => {
const tree = renderer.create(
<LoadingHandler loading={false} />,
<LoadingHandler loading={false} />
)
expect(tree).toMatchSnapshot()
})
Expand All @@ -26,7 +26,7 @@ describe('LoadingHandler', () => {
const tree = renderer.create(
<LoadingHandler LoadingComponent={LoadingComponent}>
<TestComponent />
</LoadingHandler>,
</LoadingHandler>
)
expect(tree.toJSON()).toMatchSnapshot()
})
Expand All @@ -35,7 +35,7 @@ describe('LoadingHandler', () => {
const tree = renderer.create(
<LoadingHandler message='keep keep loading'>
<TestComponent />
</LoadingHandler>,
</LoadingHandler>
)
expect(tree.toJSON()).toMatchSnapshot()
})
Expand All @@ -44,7 +44,7 @@ describe('LoadingHandler', () => {
const tree = renderer.create(
<LoadingHandler>
<TestComponent />
</LoadingHandler>,
</LoadingHandler>
)
expect(tree.toJSON()).toMatchSnapshot()
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"react-test-renderer": "^15.4.1",
"rimraf": "^2.5.4",
"snazzy": "^6.0.0",
"standard": "^9.0.2",
"standard": "^10.0.0",
"webpack": "^2.3.0"
},
"peerDependencies": {
Expand Down
Loading