Changing util.js to export an object

This allows the methods to be spied on in tests
This commit is contained in:
Jeff Avallone
2014-12-20 10:25:32 -05:00
parent 8a9a129856
commit 6c5b36f334
9 changed files with 31 additions and 31 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { spaceVertically } from '../../util.js';
import util from '../../util.js';
import _ from 'lodash';
import Q from 'q';
export default {
@@ -26,7 +26,7 @@ export default {
return part.render(this.partContainer.group());
}))
.then(() => {
spaceVertically(this.elements, {
util.spaceVertically(this.elements, {
padding: 5
});