Pass test features in SearchPage.test.js

This commit is contained in:
Hannu Lyytikainen 2018-02-09 10:19:46 +02:00
parent 03924667e0
commit 3700bf7bba
2 changed files with 9 additions and 56 deletions

View file

@ -42,6 +42,7 @@ describe('SearchPageComponent', () => {
sendVerificationEmailInProgress: false,
onResendVerificationEmail: noop,
categories: [{ key: 'cat1', label: 'Cat 1' }, { key: 'cat2', label: 'Cat 2' }],
features: [{ key: 'dog1', label: 'Dog 1' }, { key: 'dog2', label: 'Dog 2' }],
};
const tree = renderShallow(<SearchPageComponent {...props} />);
expect(tree).toMatchSnapshot();

View file

@ -36,36 +36,12 @@ exports[`SearchPageComponent matches snapshot 1`] = `
features={
Array [
Object {
"key": "towels",
"label": "Towels",
"key": "dog1",
"label": "Dog 1",
},
Object {
"key": "bathroom",
"label": "Bathroom",
},
Object {
"key": "swimming_pool",
"label": "Swimming pool",
},
Object {
"key": "own_drinks",
"label": "Own drinks allowed",
},
Object {
"key": "jacuzzi",
"label": "Jacuzzi",
},
Object {
"key": "audiovisual_entertainment",
"label": "Audiovisual entertainment",
},
Object {
"key": "barbeque",
"label": "Barbeque",
},
Object {
"key": "own_food_allowed",
"label": "Own food allowed",
"key": "dog2",
"label": "Dog 2",
},
]
}
@ -101,36 +77,12 @@ exports[`SearchPageComponent matches snapshot 1`] = `
features={
Array [
Object {
"key": "towels",
"label": "Towels",
"key": "dog1",
"label": "Dog 1",
},
Object {
"key": "bathroom",
"label": "Bathroom",
},
Object {
"key": "swimming_pool",
"label": "Swimming pool",
},
Object {
"key": "own_drinks",
"label": "Own drinks allowed",
},
Object {
"key": "jacuzzi",
"label": "Jacuzzi",
},
Object {
"key": "audiovisual_entertainment",
"label": "Audiovisual entertainment",
},
Object {
"key": "barbeque",
"label": "Barbeque",
},
Object {
"key": "own_food_allowed",
"label": "Own food allowed",
"key": "dog2",
"label": "Dog 2",
},
]
}