Skip to content

Commit

Permalink
Refactored V1 tests to use inline function #52 (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
sthzg authored Aug 15, 2016
1 parent e2ef6cf commit 864baca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions test/components/MainTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ import createComponent from 'helpers/shallowRenderHelper';

import Main from 'components/Main';

describe('MainComponent', () => {
let MainComponent;
describe('MainComponent', function () {

beforeEach(() => {
MainComponent = createComponent(Main);
beforeEach(function () {
this.MainComponent = createComponent(Main);
});

it('should have its component name as default className', () => {
expect(MainComponent.props.className).to.equal('index');
it('should have its component name as default className', function () {
expect(this.MainComponent.props.className).to.equal('index');
});
});
4 changes: 2 additions & 2 deletions test/config/ConfigTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import config from 'config';

describe('appEnvConfigTests', () => {
it('should load app config file depending on current --env', () => {
describe('appEnvConfigTests', function () {
it('should load app config file depending on current --env', function () {
expect(config.appEnv).to.equal('test');
});
});

0 comments on commit 864baca

Please sign in to comment.