Skip to content

Add phase at position - #5

Merged
bajtos merged 3 commits into
masterfrom
feature/add-phase-at-position
Nov 12, 2014
Merged

Add phase at position#5
bajtos merged 3 commits into
masterfrom
feature/add-phase-at-position

Conversation

@bajtos

Copy link
Copy Markdown
Member

Implement the following methods for adding new phases at a given
position:

  • phases.addAt(index, phase)
  • phases.addBefore(name, phase)
  • phases.addAfter(name, phase)

The first commit cleans up the unit tests.

/to @ritch please review

Miroslav Bajtoš added 2 commits November 11, 2014 14:27
Refactor `var phaseList = new PhaseList()` into a test-global variable.
Implement the following methods for adding new phases at a given
position:
- `phases.addAt(index, phase)`
- `phases.addBefore(name, phase)`
- `phases.addAfter(name, phase)`
Throw an error when a phase with an existing name is added again.
@bajtos

Copy link
Copy Markdown
MemberAuthor

Added one more commit - "prevent re-adding of existing phase"

@raymondfeng

Copy link
Copy Markdown
Member

LGTM

@ritch

Copy link
Copy Markdown
Member

👍

bajtos added a commit that referenced this pull request Nov 12, 2014
@bajtos
bajtos merged commit db75a39 into masterNov 12, 2014
@bajtos
bajtos deleted the feature/add-phase-at-position branch November 12, 2014 07:17
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@bajtos@raymondfeng@ritch