Skip to content

Commit

Permalink
Updated testdata and specs
Browse files Browse the repository at this point in the history
  • Loading branch information
ourwarmhouse committed Oct 21, 2020
1 parent 38362ca commit 323f936
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bin/testdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"productTitle": "Duckworth Woolfill Jacket",
"productPrice": "188.00",
"productDescription": "Inspired by the timeless, functionality of your grandfather's work coat, the Foraker features brass buttons and 4 patch pockets. Crafted in Bristol, Tennessee, our 10oz organic duck canvas is light enough for an early summer morning, but rugged enough to handle your days work.<ul><li>100% Organic Duck Canvas.</li></ul>",
"productGtin": "1111111111",
"productBrand": "Duckworth",
"productPublished": true,
"productTags": "organic, jacket",
"productStock": 10
Expand All @@ -14,6 +16,8 @@
"productTitle": "5 Panel Camp Cap",
"productPrice": "48.00",
"productDescription": "A classic 5 panel hat with our United By Blue logo on the front and an adjustable strap to keep fit and secure. Made with recycled polyester and organic cotton mix. <ul><li>Made in New Jersey</li><li>7oz Eco-Twill fabric: 35% organic cotton, 65% recycled PET (plastic water and soda bottles)</li><li>Embossed leather patch</li></ul>",
"productGtin": "2222222222",
"productBrand": "United By Blue",
"productPublished": true,
"productTags": "panel, cap",
"productStock": 10
Expand All @@ -23,6 +27,8 @@
"productTitle": "Red Wing Iron Ranger Boot",
"productPrice": "310.00",
"productDescription": "The Mesabi Iron Range lies in northern Minnesota, a rugged and remote area known for its iron mines. The local residents who work these mines are proudly known as Iron Rangers, individuals with a sense of adventure and a determined personality. Originally designed to be worn in the iron mines, Iron Ranger work boots had to be as tough as the people who wore them in demanding conditions. Iron Ranger boots are built with a double layer of leaver over the toe to provide an extra measure of safety.<ul><li>6 inch, Amber Harness leather with Nitrile Cork sole.</li></ul>",
"productGtin": "3333333333",
"productBrand": "Iron Ranger",
"productPublished": true,
"productTags": "ranger, boot, leather",
"productStock": 10
Expand All @@ -32,6 +38,8 @@
"productTitle": "Whitney pullover",
"productPrice": "138.00",
"productDescription": "Buttons are fussy. Sometimes you just want to roll out of bed, put on the pull over and get to the days work. <ul><li>100% Wool, Heavy 4 gauge thickness</li><li>Handmade in Nepal.</li></ul>",
"productGtin": "4444444444",
"productBrand": "Whitney",
"productPublished": true,
"productTags": "whitney, pullover",
"productStock": 10
Expand All @@ -41,6 +49,8 @@
"productTitle": "Scout Backpack",
"productPrice": "128.00",
"productDescription": "This durable backpack is ready for any adventure, large or small. Features adjustable and padded shoulder pads for comfort. Designed with a storm flap and a secured by two snap-button closure. Made with a waxed downpour proof exterior canvas and a soft cotton interior lining. Finished with brass hardware and genuine leather trimmings.<ul><li>100% organic waxed 18 oz canvas</li><li>Full grain genuine leather accents</li><li>Adjustable shoulder straps</li><li>Lifetime&amp;nbsp;Guarantee</li></ul>",
"productGtin": "5555555555",
"productBrand": "Scout",
"productPublished": true,
"productTags": "backpack, organic",
"productStock": 100
Expand All @@ -50,6 +60,8 @@
"productTitle": "Hudderton Backpack",
"productPrice": "49.95",
"productDescription": "Durable, rugged, and dependable designed with four zipper compartments. Two bellowed front pockets allow for easy access to smaller items, one large, spacious compartment with a padded laptop sleeve, and a tiny convenient pouch on top to keep keys and other small items secure. The Hudderton is built with organic downpour proof canvas, a durable full grain leather bottom to prevent wear and tear, and padded canvas shoulder straps for all-day comfort. From the commute to the trail the Hudderton is perfect for bag for the entire week.<ul><li>100% organic waxed 18 oz canvas</li><li>Full grain genuine leather detail</li><li>Soft interior cotton lining</li><li>Brass hardware and YKK zippers</li><li>Cotton Padded interior laptop sleeve</li><li>Lifetime Guarantee</li></ul>",
"productGtin": "6666666666",
"productBrand": "Hudderton",
"productPublished": true,
"productTags": "backpack",
"productStock": 10
Expand All @@ -59,6 +71,8 @@
"productTitle": "Ayres Chambray",
"productPrice": "77.99",
"productDescription": "Comfortable and practical, our chambray button down is perfect for travel or days spent on the go. The Ayres Chambray has a rich, washed out indigo color suitable to throw on for any event. Made with sustainable soft chambray featuring two chest pockets with sturdy and scratch resistant corozo buttons.<ul><li>100% Organic Cotton Chambray, 4.9 oz Fabric.</li><li>Natural Corozo Buttons.</li></ul>",
"productGtin": "7777777777",
"productBrand": "Ayres",
"productPublished": true,
"productTags": "shirt",
"productStock": 10
Expand All @@ -68,6 +82,7 @@
"productTitle": "Gym membership",
"productPrice": "15.00",
"productDescription": "This a monthly recurring Gym membership subscription.",
"productBrand": "expressCart",
"productPublished": true,
"productTags": "subscription",
"productStock": 0,
Expand Down
3 changes: 3 additions & 0 deletions test/specs/products.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ test('[Success] Add a product with incorrect GTIN', async t => {
productTitle: 'Test Jacket',
productPrice: '100.00',
productDescription: 'Test product description used to describe the product',
productBrand: 'Test brand',
productGtin: 'should be alpha',
productPublished: true,
productTags: 'organic, jacket',
Expand All @@ -112,6 +113,7 @@ test('[Fail] Add a product - Duplicate permalink', async t => {
productTitle: 'Test Jacket - blue',
productPrice: '100.00',
productDescription: 'Test product description used to describe the product',
productBrand: 'Test brand',
productPublished: true,
productTags: 'organic, jacket, blue',
productComment: false,
Expand All @@ -134,6 +136,7 @@ test('[Success] Update a product', async t => {
productTitle: 'Test Jacket',
productPrice: '200.00',
productDescription: 'Test product description used to describe the product',
productBrand: 'Test brand',
productPublished: true,
productTags: 'organic, jacket',
productComment: true,
Expand Down

0 comments on commit 323f936

Please sign in to comment.