db.multiResult('', []) .then(data => { const tableID = data[0].fields[0].tableID; });
Context.fields.forEach(function (name) { var merger = name === 'headers' ? mergeHeaders : utils.merge data[name] = merger(parent[name], this[name], this.persistent[name]) }, this)
test('Entries randomized', () => { const output = mount(<WordsPanel/>); output.find('[type="button"]').at(randomizButtonIndex).simulate('click'); // I don't like getting into the innards of the actions here, but I want to confirm the values were sent and I don't know them outside of the action itself. const [action] = getDispatchArguments(); expect(action.values).toBeDefined(); const testAction = setEntries(1, [...action.values]); expect(action).toEqual(testAction); const {words} = initialState; const fields = initialState.stories.stories[1].fields; // This was too convoluted to destructure. expect(action.values.every((value, index) => words[fields[index]].words.includes(value))).toBe(true); // confirm words are valid });
body.event.tags.forEach(([key, value]) => { payload.embeds[0].fields.push({ name: key, value, inline: true, }); });
_id: mocks.entries[3]._id, title: mocks.entries[3].title, fields: mocks.entries[3].fields, status: mocks.entries[3].status, slug: mocks.entries[3].slug,
pages[0].fields[0].value = 'Track events/items to be alerted in this channel.'; break; case 'untrack': pages[0].fields[0].value = 'Untrack events/items to be alerted in this channel.'; break; case 'set ping': pages[0].fields[0].value = 'Set the text added before an event/item notification.'; pages[0].fields.push({ name: '**Ping:**', value: 'Whatever string you want to be added before a notification for this item or event. If you leave this blank, the ping for this item/event will be cleared',
d.attachments[0].fields.push({ title: 'Features', value: guild.features.join('\n'),
body.event.tags.forEach(([key, value]) => { payload.embeds[0].fields.push({ name: key, value, inline: true, }); });
Context.fields.forEach(function (name) { var merger = name === 'headers' ? mergeHeaders : utils.merge data[name] = merger(parent[name], this[name], this.persistent[name]) }, this)