From 270ee7fd83b819e9ed6ba2908dcf1103b68ad14e Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Mon, 10 Apr 2017 09:45:09 +0200 Subject: [PATCH] Remove unnecessary tests see PR #878 for explanation --- test/ReactWrapper-spec.jsx | 13 ------------- test/ShallowWrapper-spec.jsx | 18 ------------------ 2 files changed, 31 deletions(-) diff --git a/test/ReactWrapper-spec.jsx b/test/ReactWrapper-spec.jsx index 9af9b89ed..65478e20a 100644 --- a/test/ReactWrapper-spec.jsx +++ b/test/ReactWrapper-spec.jsx @@ -3304,19 +3304,6 @@ describeWithDOM('mount', () => { expect(wrapper.name()).to.equal('SFC'); }); }); - - describe('createClass', () => { - it('should return the name of the node', () => { - const Foo = createClass({ - render() { - return
; - }, - }); - - const wrapper = mount(); - expect(wrapper.name()).to.equal('Foo'); - }); - }); }); describe('DOM node', () => { diff --git a/test/ShallowWrapper-spec.jsx b/test/ShallowWrapper-spec.jsx index 4736bb483..e12227343 100644 --- a/test/ShallowWrapper-spec.jsx +++ b/test/ShallowWrapper-spec.jsx @@ -3953,24 +3953,6 @@ describe('shallow', () => { expect(wrapper.name()).to.equal('SFC'); }); }); - - describe('createClass', () => { - it('should return the name of the node', () => { - const Foo = createClass({ - render() { - return
; - }, - }); - const Wrapper = createClass({ - render() { - return ; - }, - }); - - const wrapper = shallow(); - expect(wrapper.name()).to.equal('Foo'); - }); - }); }); describe('DOM node', () => {