Skip to content

Commit

Permalink
Revert "Show a test using Chai-Enzyme"
Browse files Browse the repository at this point in the history
This reverts commit d91c843.
  • Loading branch information
jbinto committed Jan 25, 2016
1 parent 2011a90 commit 4ac051b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
6 changes: 3 additions & 3 deletions app/components/Img/Img.test.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import Img from './index';

import { expect } from 'chai';
import expect from 'expect';
import { shallow } from 'enzyme';
import React from 'react';

describe('<Img />', () => {
it('should render an <img> tag', () => {
const renderedComponent = shallow(<Img src="test.png" alt="test" />);
expect(renderedComponent).to.have.tagName('img');
expect(renderedComponent.find('img').length).toEqual(1);
});

it('should have an alt attribute', () => {
const renderedComponent = shallow(<Img src="test.png" alt="test" />);
expect(renderedComponent).to.have.attr('alt', 'test');
expect(renderedComponent.prop('alt')).toEqual('test');
});
});
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-preset-stage-2": "^6.3.13",
"chai": "^3.4.1",
"chai-enzyme": "^0.2.2",
"chalk": "^1.1.1",
"cheerio": "^0.19.0",
"css-loader": "^0.23.1",
Expand All @@ -43,7 +41,6 @@
"ip": "^1.1.0",
"json-loader": "^0.5.4",
"karma": "^0.13.19",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^0.2.2",
"karma-mocha": "^0.2.1",
"karma-sourcemap-loader": "^0.3.7",
Expand Down
4 changes: 0 additions & 4 deletions webpack/testHelper.js

This file was deleted.

0 comments on commit 4ac051b

Please sign in to comment.