diff --git a/packages/vx-shape/test/BarGroup.test.js b/packages/vx-shape/test/BarGroup.test.js
index d3deacff1..3666abb22 100644
--- a/packages/vx-shape/test/BarGroup.test.js
+++ b/packages/vx-shape/test/BarGroup.test.js
@@ -26,4 +26,10 @@ describe('', () => {
expect(console.error).toBeCalled()
expect(console.error.mock.calls[0][0]).toEqual("Warning: Failed prop type: The prop `data` is marked as required in `BarGroup`, but its value is `undefined`.\n in BarGroup")
})
+
+ test('it should set top & left props', () => {
+ const wrapper = shallow()
+ expect(wrapper.prop('top')).toEqual(2)
+ expect(wrapper.prop('left')).toEqual(3)
+ })
})
diff --git a/packages/vx-shape/test/BarStack.test.js b/packages/vx-shape/test/BarStack.test.js
index a0ce00f28..c8662efad 100644
--- a/packages/vx-shape/test/BarStack.test.js
+++ b/packages/vx-shape/test/BarStack.test.js
@@ -6,4 +6,55 @@ describe('', () => {
test('it should be defined', () => {
expect(BarStack).toBeDefined()
})
+
+ test('it should have className .vx-bar-stack', () => {
+ const wrapper = shallow(
+ d}
+ xScale={d => d}
+ yScale={d => d}
+ zScale={d => d}
+ keys={[]}
+ />
+ )
+ expect(wrapper.prop('className')).toEqual('vx-bar-stack')
+ })
+
+ test('it should set className prop', () => {
+ const wrapper = shallow(
+ d}
+ xScale={d => d}
+ yScale={d => d}
+ zScale={d => d}
+ keys={[]}
+ />
+ )
+ expect(wrapper.prop('className')).toEqual('vx-bar-stack test')
+ })
+
+ test('it should set top & left props', () => {
+ const wrapper = shallow(
+ d}
+ xScale={d => d}
+ yScale={d => d}
+ zScale={d => d}
+ keys={[]}
+ />
+ )
+ expect(wrapper.prop('top')).toEqual(2)
+ expect(wrapper.prop('left')).toEqual(3)
+ })
})
\ No newline at end of file