Skip to content

Commit

Permalink
Change back to use flex message
Browse files Browse the repository at this point in the history
  • Loading branch information
up2code committed Jun 19, 2019
1 parent bfc564c commit 72b36ee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flex_templates/itemList.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ const generatePlainText = items => {
}
}

module.exports = generatePlainText;
module.exports = generateFlex;
14 changes: 13 additions & 1 deletion test/flex_template.item.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const itemTemplate = require('./../flex_templates/item');
const itemListTemplate = require('./../flex_templates/itemList');

const item = {
name: 'familiar_card'
Expand All @@ -14,4 +15,15 @@ const priceData = {
"change7day": 147.70476748209865
}

console.log(itemTemplate(item, priceData));
//console.log(itemTemplate(item, priceData));

console.log(itemListTemplate([
{
display_name: 'Cyfar',
priceData
},
{
display_name: 'Cyfar2',
priceData
}
]));

0 comments on commit 72b36ee

Please sign in to comment.