Skip to content

Commit

Permalink
Added dependencies for testing
Browse files Browse the repository at this point in the history
Modified test createFactory
  • Loading branch information
jonisaa committed Jul 29, 2016
1 parent e8c117e commit d03cefb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"coveralls": "^2.11.11",
"cross-env": "^2.0.0",
"css-loader": "^0.23.1",
"enzyme": "^2.4.1",
"express": "^4.14.0",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.9.0",
Expand All @@ -68,6 +69,8 @@
"phantomjs-prebuilt": "^2.1.7",
"raw-loader": "^0.5.1",
"react-ace": "^3.4.1",
"react-addons-test-utils": "^15.3.0",
"react-dom": "^15.3.0",
"react-hot-loader": "^1.3.0",
"react-router": "^2.0.0",
"react-router-redux": "^4.0.2",
Expand Down
9 changes: 2 additions & 7 deletions test/createFactory.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { EditComponentFactory, DetailsComponentFactory } from '../src/index';
import { expect } from 'chai';


describe("Factory creation", function() {
it("User requests an edit factory", function(done) {

Expand All @@ -17,9 +16,7 @@ describe("Factory creation", function() {
'group': 'FieldGroup'
};

let factory = EditComponentFactory;

expect(factory.defaultFieldComponents).to.be.deep.equal(correctConfig);
expect(EditComponentFactory.defaultFieldComponents).to.be.deep.equal(correctConfig);
done()
});

Expand All @@ -36,9 +33,7 @@ describe("Factory creation", function() {
'group': 'FieldGroup'
};

let factory = DetailsComponentFactory;

expect(factory.defaultFieldComponents).to.be.deep.equal(correctConfig);
expect(DetailsComponentFactory.defaultFieldComponents).to.be.deep.equal(correctConfig);
done()
})
});

0 comments on commit d03cefb

Please sign in to comment.