Skip to content

Commit 2212614

Browse files
fix: escape linting
1 parent 8aa43b3 commit 2212614

File tree

1 file changed

+32
-19
lines changed
  • packages/components/bolt-table/__tests__

1 file changed

+32
-19
lines changed

packages/components/bolt-table/__tests__/table.js

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable camelcase */
2+
13
import {
24
render,
35
renderString,
@@ -142,10 +144,10 @@ describe('<bolt-table> Component', () => {
142144
expect(results.html).toMatchSnapshot();
143145
});
144146

145-
format.enum.forEach(async choice => {
146-
test(`table format: ${choice}`, async () => {
147+
format.enum.forEach(async option => {
148+
test(`table format: ${option}`, async () => {
147149
const results = await renderTwig('@bolt-components-table/table.twig', {
148-
format: choice,
150+
format: option,
149151
headers: {
150152
top: {
151153
cells: ['Pts', 'Reb', 'Ast', 'Stl', 'Blk'],
@@ -174,10 +176,10 @@ describe('<bolt-table> Component', () => {
174176
});
175177
});
176178

177-
borderless.enum.forEach(async choice => {
178-
test(`borderless table: ${choice}`, async () => {
179+
borderless.enum.forEach(async option => {
180+
test(`borderless table: ${option}`, async () => {
179181
const results = await renderTwig('@bolt-components-table/table.twig', {
180-
borderless: choice,
182+
borderless: option,
181183
headers: {
182184
top: {
183185
cells: ['Description', 'Team', 'Vehicle Form'],
@@ -208,31 +210,42 @@ describe('<bolt-table> Component', () => {
208210
});
209211
});
210212

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 () => {
213215
const results = await renderTwig('@bolt-components-table/table.twig', {
214-
first_col_fixed_width: choice,
216+
first_col_fixed_width: option,
215217
headers: {
216218
top: {
217-
cells: ['Description', 'Team', 'Vehical Form'],
218-
},
219-
side: {
220-
cells: ['Optimus Prime', 'Bumblebee'],
219+
cells: ['Prop', 'Description', 'Type'],
221220
},
222221
},
223222
rows: [
224223
{
225224
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>',
229228
],
230229
},
231230
{
232231
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>',
236249
],
237250
},
238251
],

0 commit comments

Comments
 (0)