describe( 'index', () => { test( 'should not have overlapping step/flow names', () => { const overlappingNames = intersection( keys( steps ), keys( flows.getFlows() ) ); if ( ! isEmpty( overlappingNames ) ) { throw new Error( 'Step and flow names must be unique. The following names are used as both step and flow names: [' + overlappingNames + '].' ); } } ); } );
Object.keys(options.cookie) .map( (key) => encodeURIComponent(key) + '=' + encodeURIComponent(options.cookie[key]), ) .join('; ')
Object.keys(this.state.changedClientSettings).map(settingsKey => { const data = this.state.changedClientSettings[settingsKey]; if (data.overrideLocalSetting) { return data; } return {id: settingsKey, data}; })
app.on('before-quit', () => { tty.close(); Object.keys(extraTtys).forEach(key => { if (extraTtys[key] !== null) { extraTtys[key].close(); } }); signale.complete("Shutting down..."); });
test( 'should export expected reducer keys', () => { expect( reducer( undefined, {} ) ).to.have.keys( [ 'hasChanges', 'fileInfo', 'transform', 'cropBounds', 'crop', 'aspectRatio', 'imageIsLoading', 'originalAspectRatio', ] ); } );
// Add tags Object.keys(tags).forEach(function forTag(tag) { const scheme = { "description": tag + " - " + tags[tag].join(", "), "type": "boolean", "default": true }; schema.properties[tag] = scheme; });
function stringify(value) { function stabilize(key, object) { if (typeof object !== 'object' || object === undefined || object === null) return object; const result = {}; for (const key of Object.keys(object).sort()) result[key] = object[key]; return result; } return JSON.stringify(stabilize(null, value), stabilize); }
Object.keys(props.dictionary.services).map(host => ( <option value={host}> <Text id={`integration.caldav.services.${host}.name`} /> </option> ))
Object.keys( SUPPORTED_CURRENCIES ).map( ( value ) => { const { symbol } = getCurrencyDefaults( value ); const label = symbol === value ? value : `${ value } ${ trimEnd( symbol, '.' ) }`; return { value, label }; } )
Object.keys(query).forEach((i) => { if (/^\/api\//.test(i)) { data[i] = query[i] } })
function create(obj, settings) { var cgi = {}; Object.keys(obj).forEach(function(name) { cgi[name] = createCgi(obj[name], settings); }); return cgi; }
Object.keys(data) .forEach(function(name) { var item = data[name]; if (item && item[prop]) { list.push(item); } });
Object.keys(jsonLayer).forEach((p) => { if (p !== 'type') { realLayer[p] = jsonLayer[p]; } });