Skip to content

Commit

Permalink
fix: fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
tcnguyen committed Mar 29, 2018
1 parent 5121d0b commit 6671e78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 3 additions & 1 deletion packages/test-ecommerce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@
"eslint-config-airbnb": "^15.0.1",
"eslint-plugin-babel": "^4.1.1",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jest": "^21.4.2",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-mocha": "^4.11.0",
"eslint-plugin-node": "^5.1.0",
"eslint-plugin-react": "^7.1.0"
"eslint-plugin-react": "^7.1.0",
"jest": "^21.2.1"
},
"engines": {
"node": "8.x"
Expand Down
12 changes: 4 additions & 8 deletions packages/test-ecommerce/src/views/products-view.en.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,11 @@ class ProductsView extends PromptView {
WebAdapter.getImageUrl('product_order_confirm.handlebars', {
productName: product.title,
productImage: product.imageUrl,
})
)
}),
),
);

messages.push(
new BotTextMessage(`You just bought the ${product.title}, good choice!`)
);
messages.push(new BotTextMessage(`You just bought the ${product.title}, good choice!`));
}

if (missingEntities.has('product')) {
Expand All @@ -63,9 +61,7 @@ class ProductsView extends PromptView {

static getCardsProducts() {
return new CardsMessage(
['top hat', 'cowboy hat', 'detective hat'].map(key =>
productToCard(key, PRODUCTS[key])
)
['top hat', 'cowboy hat', 'detective hat'].map(key => productToCard(key, PRODUCTS[key])),
);
}
}
Expand Down

0 comments on commit 6671e78

Please sign in to comment.