Scenario.todo('@todo', () => { console.log('todo test not passed'); });
scenarioConfig = context.Scenario.todo('scenario', () => { console.log('Scenario Body'); }); scenarioConfig = context.Scenario.todo('scenario'); scenarioConfig = context.Scenario.todo('scenario', { customOpts: 'Custom Opts' }); scenarioConfig = context.Scenario.todo('scenario', { customOpts: 'Custom Opts' }, () => { console.log('Scenario Body'); });
}); test.todo('Should be private by default');
todo(name: string): void,
}); test.todo('Throw when input is not a nested object');
async install() { const steps = this.steps(ApplicationManager); for (let i = 0; i < steps.length; i++) { const step = steps[i]; const progress = i / steps.length; this.progressCallback(step, progress); await new Promise((resolve, reject) => step.todo(resolve, reject)); } this.progressCallback(null, -1); }
static reducer(action, state) { switch (action.type) { case 'ADD_TODO': return Update({ todos: state.todos.concat(action.payload) }) case 'REMOVE_TODO': return Update({ todos: state.todos.filter((_, idx) => idx !== action.payload) }) case 'UPDATE_TODO': return Update({ todos: state.todos.map((todo, idx) => (action.payload.index === idx ? action.payload.todo : todo)) }) case 'SET_EDITING': return Update({ editing: { ...state.editing, [action.payload]: !state.editing[action.payload] } }) } }
_onClick() { this.context.router.transitionTo('board_topic', { 'board_id': this.props.parent.id, 'id': this.props.todo.id, }); }
componentWillMount() { this.state = { complete: false, editing: false, text: this.props.todo.text }; }
}); test.todo('Should be private by default');
}); test.todo('Throw when input is not a nested object');
static reducer(action, state) { switch (action.type) { case 'ADD_TODO': return Update({ todos: state.todos.concat(action.payload) }) case 'REMOVE_TODO': return Update({ todos: state.todos.filter((_, idx) => idx !== action.payload) }) case 'UPDATE_TODO': return Update({ todos: state.todos.map((todo, idx) => (action.payload.index === idx ? action.payload.todo : todo)) }) case 'SET_EDITING': return Update({ editing: { ...state.editing, [action.payload]: !state.editing[action.payload] } }) } }