Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wylieconlon committed Mar 23, 2020
1 parent dbe5011 commit e3e415c
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ describe('metric_visualization', () => {
accessor: undefined,
layerId: 'l1',
},
layerId: 'l1',
frame: mockFrame(),
})
).toEqual({
groups: [
Expand All @@ -89,6 +91,25 @@ describe('metric_visualization', () => {
],
});
});

it('is not allowed to add a metric once one accessor is set', () => {
expect(
metricVisualization.getConfiguration({
state: {
accessor: 'a',
layerId: 'l1',
},
layerId: 'l1',
frame: mockFrame(),
})
).toEqual({
groups: [
expect.objectContaining({
supportsMoreColumns: false,
}),
],
});
});
});

describe('#setDimension', () => {
Expand Down

0 comments on commit e3e415c

Please sign in to comment.