Skip to content

Commit

Permalink
Upgrade deps and fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
icd2k3 committed Feb 17, 2018
1 parent 5848fc0 commit 135234b
Show file tree
Hide file tree
Showing 3 changed files with 250 additions and 221 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ComponentWithoutProps from '../ComponentWithoutProps';
import snap from 'jest-auto-snapshots';
import ComponentWithoutProps from '../ComponentWithoutProps';

snap(ComponentWithoutProps, '../ComponentWithoutProps.jsx');
52 changes: 24 additions & 28 deletions src/__tests__/getFixture.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,37 @@ describe('getFixture', () => {

describe('custom fixture prop type', () => {
it('Should return the correct fixture', () => {
expect(
getFixture(
{
name: 'mockCustomPropType',
key: 'key',
raw: 'mockCustomPropType',
expect(getFixture(
{
name: 'mockCustomPropType',
key: 'key',
raw: 'mockCustomPropType',
},
'key',
mergeConfig({
fixturesByPropType: {
mockCustomPropType: 'mockCustomFixture',
},
'key',
mergeConfig({
fixturesByPropType: {
mockCustomPropType: 'mockCustomFixture',
},
}),
),
).toBe('mockCustomFixture');
}),
)).toBe('mockCustomFixture');
});
});

describe('custom fixture prop key', () => {
it('Should return the correct fixture', () => {
expect(
getFixture(
{
name: 'string',
key: 'mockKey',
raw: 'string',
expect(getFixture(
{
name: 'string',
key: 'mockKey',
raw: 'string',
},
'mockKey',
mergeConfig({
fixturesByPropKey: {
mockKey: 'mockCustomKeyFixture',
},
'mockKey',
mergeConfig({
fixturesByPropKey: {
mockKey: 'mockCustomKeyFixture',
},
}),
),
).toBe('mockCustomKeyFixture');
}),
)).toBe('mockCustomKeyFixture');
});
});
});
Loading

0 comments on commit 135234b

Please sign in to comment.