Skip to content

Commit 77793ba

Browse files
committed
Decrease similar drinks count to 3.
1 parent 3270c33 commit 77793ba

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/FeaturedRecipes.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import recipes from '../recipes';
2828
import RecipeTile from './RecipeTile.vue';
2929
30-
const FEATURED_ITEM_SIZE = 3;
30+
const FEATURED_ITEM_SIZE = 6;
3131
3232
export default {
3333
name: 'FeaturedRecipes',

src/components/Recipe.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ import RecipeTile from '@/components/RecipeTile.vue';
110110
import recipes from '../recipes';
111111
import RecipeToolbar from '@/components/RecipeToolbar.vue';
112112
113-
const NUMBER_OF_SIMILAR_RECIPES = 6;
113+
const NUMBER_OF_SIMILAR_RECIPES = 3;
114114
115115
export default {
116116
name: 'Recipe',

tests/unit/components/FeaturedRecipes.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('FeaturedRecipes', () => {
2121
expect(wrapper.isVueInstance()).toBeTruthy();
2222
});
2323

24-
test.skip('render title correctly', () => {
24+
test('render title correctly', () => {
2525
expect(
2626
wrapper
2727
.findAll('h2')
@@ -30,7 +30,7 @@ describe('FeaturedRecipes', () => {
3030
).toBe('Popular Drinks');
3131
});
3232

33-
test.skip('render description', () => {
33+
test('render description', () => {
3434
expect(
3535
wrapper
3636
.findAll('p')
@@ -40,7 +40,7 @@ describe('FeaturedRecipes', () => {
4040
});
4141

4242
test('expand featured list if Load More clicked', () => {
43-
const EXPECTED_SIZE = wrapper.vm.featuredList[0].size + 3;
43+
const EXPECTED_SIZE = wrapper.vm.featuredList[0].size + 6;
4444
wrapper.vm.loadMore(0);
4545

4646
expect(wrapper.vm.featuredList[0].size).toBe(EXPECTED_SIZE);

0 commit comments

Comments
 (0)