|
| 1 | +/* eslint-disable camelcase */ |
| 2 | + |
1 | 3 | import {
|
2 | 4 | render,
|
3 | 5 | renderString,
|
@@ -142,10 +144,10 @@ describe('<bolt-table> Component', () => {
|
142 | 144 | expect(results.html).toMatchSnapshot();
|
143 | 145 | });
|
144 | 146 |
|
145 |
| - format.enum.forEach(async choice => { |
146 |
| - test(`table format: ${choice}`, async () => { |
| 147 | + format.enum.forEach(async option => { |
| 148 | + test(`table format: ${option}`, async () => { |
147 | 149 | const results = await renderTwig('@bolt-components-table/table.twig', {
|
148 |
| - format: choice, |
| 150 | + format: option, |
149 | 151 | headers: {
|
150 | 152 | top: {
|
151 | 153 | cells: ['Pts', 'Reb', 'Ast', 'Stl', 'Blk'],
|
@@ -174,10 +176,10 @@ describe('<bolt-table> Component', () => {
|
174 | 176 | });
|
175 | 177 | });
|
176 | 178 |
|
177 |
| - borderless.enum.forEach(async choice => { |
178 |
| - test(`borderless table: ${choice}`, async () => { |
| 179 | + borderless.enum.forEach(async option => { |
| 180 | + test(`borderless table: ${option}`, async () => { |
179 | 181 | const results = await renderTwig('@bolt-components-table/table.twig', {
|
180 |
| - borderless: choice, |
| 182 | + borderless: option, |
181 | 183 | headers: {
|
182 | 184 | top: {
|
183 | 185 | cells: ['Description', 'Team', 'Vehicle Form'],
|
@@ -208,31 +210,42 @@ describe('<bolt-table> Component', () => {
|
208 | 210 | });
|
209 | 211 | });
|
210 | 212 |
|
211 |
| - first_col_fixed_width.enum.forEach(async choice => { |
212 |
| - test(`first column fixed width table: ${choice}`, async () => { |
| 213 | + first_col_fixed_width.enum.forEach(async option => { |
| 214 | + test(`first column fixed width table: ${option}`, async () => { |
213 | 215 | const results = await renderTwig('@bolt-components-table/table.twig', {
|
214 |
| - first_col_fixed_width: choice, |
| 216 | + first_col_fixed_width: option, |
215 | 217 | headers: {
|
216 | 218 | top: {
|
217 |
| - cells: ['Description', 'Team', 'Vehical Form'], |
218 |
| - }, |
219 |
| - side: { |
220 |
| - cells: ['Optimus Prime', 'Bumblebee'], |
| 219 | + cells: ['Prop', 'Description', 'Type'], |
221 | 220 | },
|
222 | 221 | },
|
223 | 222 | rows: [
|
224 | 223 | {
|
225 | 224 | cells: [
|
226 |
| - 'The awe-inspiring leader of the Autobot forces. Selfless and endlessly courageous, he is the complete opposite of his mortal enemy Megatron.', |
227 |
| - 'Autobots', |
228 |
| - 'Peterbilt Truck', |
| 225 | + 'attributes', |
| 226 | + 'Proin quis tortor orci. Etiam at risus et justo dignissim congue. Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus.', |
| 227 | + '<code>object</code>', |
229 | 228 | ],
|
230 | 229 | },
|
231 | 230 | {
|
232 | 231 | cells: [
|
233 |
| - 'One of Optimus Primes most trusted lieutenants. Although he is not the strongest or most powerful of the Autobots, Bumblebee more than makes up for this with a bottomless well of luck, determination and bravery. He would gladly give his life to protect others and stop the Decepticons.', |
234 |
| - 'Autobots', |
235 |
| - 'VW Beetle', |
| 232 | + 'headers', |
| 233 | + 'Proin quis tortor orci. Etiam at risus et justo dignissim congue. Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus.', |
| 234 | + '<code>object</code>', |
| 235 | + ], |
| 236 | + }, |
| 237 | + { |
| 238 | + cells: [ |
| 239 | + 'rows', |
| 240 | + 'Proin quis tortor orci. Etiam at risus et justo dignissim congue. Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus.', |
| 241 | + '<code>array</code>', |
| 242 | + ], |
| 243 | + }, |
| 244 | + { |
| 245 | + cells: [ |
| 246 | + 'format', |
| 247 | + 'Proin quis tortor orci. Etiam at risus et justo dignissim congue. Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus.', |
| 248 | + '<code>string</code>', |
236 | 249 | ],
|
237 | 250 | },
|
238 | 251 | ],
|
|
0 commit comments