Changing util.js to export an object
This allows the methods to be spied on in tests
This commit is contained in:
1 parent
8a9a129856
commit
6c5b36f334
9 files changed
+31
-31
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { customEvent, normalizeBBox } from '../../util.js';
|
||||
import util from '../../util.js';
|
||||
import _ from 'lodash';
|
||||
import Q from 'q';
|
||||
|
||||
@@ -107,7 +107,7 @@ export default class Node {
|
||||
|
||||
this.state.renderCounter--;
|
||||
|
||||
document.body.dispatchEvent(customEvent('updateStatus', {
|
||||
document.body.dispatchEvent(util.customEvent('updateStatus', {
|
||||
percentage: (this.state.maxCounter - this.state.renderCounter) / this.state.maxCounter
|
||||
}));
|
||||
|
||||
|
||||
Reference in new issue
Block a user