Skip to content

Commit a959eea

Browse files
committed
Remove tests for deprecated createClass API
1 parent e97e18f commit a959eea

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

test/components/connect.spec.js

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable no-unused-vars */
22
import expect from 'expect'
3-
import React, { createClass, Component } from 'react'
3+
import React, { Component } from 'react'
44
import TestUtils from 'react-addons-test-utils'
55
import PropTypes from 'prop-types'
66
import { connect, PromiseState } from '../../src/index'
@@ -1679,23 +1679,6 @@ describe('React', () => {
16791679
}
16801680
}
16811681
).displayName).toBe('Refetch.connect(Foo)')
1682-
1683-
expect(connect(state => state)(
1684-
createClass({
1685-
displayName: 'Bar',
1686-
render() {
1687-
return <div />
1688-
}
1689-
})
1690-
).displayName).toBe('Refetch.connect(Bar)')
1691-
1692-
expect(connect(state => state)(
1693-
createClass({
1694-
render() {
1695-
return <div />
1696-
}
1697-
})
1698-
).displayName).toBe('Refetch.connect(Component)')
16991682
})
17001683

17011684
it('should expose the wrapped component as WrappedComponent', () => {

0 commit comments

Comments
 (0)