Skip to content

Commit 1cd931d

Browse files
fix: jest test
1 parent b651bb8 commit 1cd931d

File tree

1 file changed

+33
-0
lines changed
  • packages/components/bolt-list/__tests__

1 file changed

+33
-0
lines changed

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const {
1616
align,
1717
valign,
1818
tag,
19+
nowrap,
1920
} = schema.properties;
2021

2122
const timeout = 120000;
@@ -112,6 +113,38 @@ describe('<bolt-list> Component', () => {
112113
});
113114
});
114115

116+
nowrap.enum.forEach(async nowrapChoice => {
117+
test(`list nowrap: ${nowrapChoice}`, async () => {
118+
const results = await render('@bolt-components-list/list.twig', {
119+
display: 'inline',
120+
nowrap: nowrapChoice,
121+
items: [
122+
'item 1',
123+
'item 2',
124+
'item 3',
125+
'item 4',
126+
'item 5',
127+
'item 6',
128+
'item 7',
129+
'item 8',
130+
'item 9',
131+
'item 10',
132+
'item 11',
133+
'item 12',
134+
'item 13',
135+
'item 14',
136+
'item 15',
137+
'item 16',
138+
'item 17',
139+
'item 18',
140+
'item 19',
141+
],
142+
});
143+
expect(results.ok).toBe(true);
144+
expect(results.html).toMatchSnapshot();
145+
});
146+
});
147+
115148
test('Bolt List: items accept renderable objects as content', async () => {
116149
const results = await renderString(`
117150
{% set item_1 = create_attribute({'test-attr': 'test-value'}) %}

0 commit comments

Comments
 (0)