diff options
author | Paul Slaughter <pslaughter@gitlab.com> | 2019-09-05 08:46:18 +0300 |
---|---|---|
committer | Paul Slaughter <pslaughter@gitlab.com> | 2019-09-05 08:46:18 +0300 |
commit | 7c461068e924d61dab299d4efc560b57f8380f87 (patch) | |
tree | 28a4bfb737e5437397cdf79e026ca4fbdf83db57 | |
parent | 82726e43ed87c1de497499e3cea706a9f404e13c (diff) |
Update gl_dropdown data with new API
-rw-r--r-- | spec/frontend/test_pins/gl_dropdown_snapshots_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/test_pins/gl_dropdown_snapshots_spec.js b/spec/frontend/test_pins/gl_dropdown_snapshots_spec.js index 422d4ef351a..1e097875709 100644 --- a/spec/frontend/test_pins/gl_dropdown_snapshots_spec.js +++ b/spec/frontend/test_pins/gl_dropdown_snapshots_spec.js @@ -7,7 +7,7 @@ const TEST_TEMPLATE = 'TEST_TEMPLATE'; const TEST_SEARCH = 'lor'; const createTestData = () => [ - { header: 'Lorem' }, + { type: 'header', content: 'Lorem' }, { text: 'Any' }, { id: '1', text: 'Lorem', template: TEST_TEMPLATE, icon: '😀' }, { id: 2, text: 'Ipsum', template: TEST_TEMPLATE, icon: '' }, @@ -18,14 +18,14 @@ const createTestData = () => [ { id: 7, icon: '😀' }, { id: 8 }, { id: 9, text: 'Am\'i"t' }, - { id: 15, text: 'Consecutur', header: 'More things' }, - 'divider', + { id: 15, text: 'Consecutur', type: 'header', content: 'More things' }, + { type: 'divider' }, { id: '10', text: 'Nu<strong>n</strong>c', bogus: '123', template: TEST_TEMPLATE, icon: '😀' }, { id: 11, text: 'Praesent Lorr', bogus: '456', template: TEST_TEMPLATE, icon: '' }, { id: 12, text: 'Proin', bogus: '789', icon: '😀' }, { text: 'Sed', bogus: '101', icon: '' }, { text: 'Fusce' }, - 'separator', + { type: 'separator' }, ]; const testRenderRow = (data, instance) => `<div>renderRow: ${data.text} ${instance.bogus}</div>`; |