Skip to content

Commit

Permalink
fix(tests): make them faster & fix dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
eddywashere committed Mar 13, 2016
1 parent fe334fe commit 5dadc6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/Dropdown.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ describe('Dropdown', () => {
it('should be called when tether is enabled', () => {
isOpen = true;
spyOn(Dropdown.prototype, 'getTetherConfig').and.callThrough();
mount(
const wrapper = mount(
<Dropdown isOpen={isOpen} toggle={toggle} tether>
<DropdownToggle>Toggle</DropdownToggle>
<DropdownMenu right dropup>
Expand All @@ -169,6 +169,7 @@ describe('Dropdown', () => {
);

expect(Dropdown.prototype.getTetherConfig).toHaveBeenCalled();
wrapper.unmount();
});
});

Expand Down
2 changes: 1 addition & 1 deletion webpack.test.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var webpackConfig = require('./webpack.config.js');

delete webpackConfig.entry.example;
webpackConfig.devtool = 'inline-source-map';
webpackConfig.devtool = 'cheap-module-source-map';
webpackConfig.module.preLoaders = webpackConfig.module.preLoaders || [];
webpackConfig.module.preLoaders.push({
test: /\.jsx?$/,
Expand Down

0 comments on commit 5dadc6f

Please sign in to comment.