diff --git a/src/components/View/__tests__/index-test.js b/src/components/View/__tests__/index-test.js
index c3adfb0e..a7e2f9ed 100644
--- a/src/components/View/__tests__/index-test.js
+++ b/src/components/View/__tests__/index-test.js
@@ -1,34 +1,33 @@
/* eslint-env mocha */
-import * as utils from '../../../modules/specHelpers'
import assert from 'assert'
import React from 'react'
-
+import { shallow } from 'enzyme'
import View from '../'
suite('components/View', () => {
test('prop "children"', () => {
const children = 'children'
- const result = utils.shallowRender({children})
- assert.equal(result.props.children, children)
+ const view = shallow({children})
+ assert.equal(view.prop('children'), children)
})
test('prop "pointerEvents"', () => {
- const result = utils.shallowRender()
- assert.equal(result.props.className, '__style_pebo')
+ const view = shallow()
+ assert.equal(view.prop('className'), '__style_pebo')
})
test('prop "style"', () => {
- const noFlex = utils.shallowRender()
- assert.equal(noFlex.props.style.flexShrink, 0)
+ const view = shallow()
+ assert.equal(view.prop('style').flexShrink, 0)
- const flex = utils.shallowRender()
- assert.equal(flex.props.style.flexShrink, 1)
+ const flexView = shallow()
+ assert.equal(flexView.prop('style').flexShrink, 1)
- const flexShrink = utils.shallowRender()
- assert.equal(flexShrink.props.style.flexShrink, 1)
+ const flexShrinkView = shallow()
+ assert.equal(flexShrinkView.prop('style').flexShrink, 1)
- const flexAndShrink = utils.shallowRender()
- assert.equal(flexAndShrink.props.style.flexShrink, 2)
+ const flexAndShrinkView = shallow()
+ assert.equal(flexAndShrinkView.prop('style').flexShrink, 2)
})
})