Skip to content

Commit

Permalink
Fixed addTo layer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Clebal committed Jul 27, 2020
1 parent 0adad06 commit ff3a829
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/viz/__tests__/Layer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ describe('Layer', () => {

await layer1.replaceDeckGLLayer();
expect(deckInstanceMock.props.layers.length).toBe(2);
expect(deckInstanceMock.props.layers[0].id).toBe('layer2');
expect(deckInstanceMock.props.layers[1].id).toBe('layer1');
expect(deckInstanceMock.props.layers[0].id).toBe('layer1');
expect(deckInstanceMock.props.layers[1].id).toBe('layer2');
});

it('should allow adding after a layer', async () => {
Expand All @@ -116,9 +116,9 @@ describe('Layer', () => {

await layer1.replaceDeckGLLayer();
expect(deckInstanceMock.props.layers.length).toBe(3);
expect(deckInstanceMock.props.layers[0].id).toBe('layer2');
expect(deckInstanceMock.props.layers[0].id).toBe('layer1');
expect(deckInstanceMock.props.layers[1].id).toBe('layer3');
expect(deckInstanceMock.props.layers[2].id).toBe('layer1');
expect(deckInstanceMock.props.layers[2].id).toBe('layer2');
});
});
});
Expand Down

0 comments on commit ff3a829

Please sign in to comment.