Skip to content

Person wrap around test cases are wrong #83

@bact

Description

@bact

'wraps around to the right'

it('wraps around to the right', function() {

Before:

1-Jane, 2-John, 3-Alex

Then, move 1-Jane to the left.

Expected 1-Jane to move to left -> wrap to the end, and others shift left:

1-John, 2-Alex, 3-Jane

Current expectation in the test case:

1-Alex, 2-Jonn, 3-Jane

(Looks like a swap between first and last, not a wrap)

'wraps around to the left'

it('wraps around to the left', function() {

Before:

1-Jane, 2-John, 3-Alex

Then, move 3-Alex to the right.

Expected 3-Alex to move to the right -> wrap to the beginning, and others shift right:

1-Alex, 2-Jane, 3-John

Current expectation in the test case:

1-Alex, 2-John, 3-Jane

(Looks like a swap between last and first, not a wrap)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions