Skip to content

Commit 31d0f7d

Browse files
Portugal, Marcelomportuga
authored andcommitted
test(importer.js): Fixing test cases for build.
1 parent cc8144c commit 31d0f7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/features/importer/test/uiGridImporterMenuItemDirective.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ describe('ui.grid.importer uiGridImporterMenuItem', function() {
3939
expect(uiGridImporterMenuItem.hasClass('ui-grid-menu-item')).toBe(true);
4040
});
4141
it('should do nothing when a change event is fired and there are no files selected', function() {
42-
var event = new Event('change');
42+
var event = document.createEvent('HTMLEvents'); // DOM event must be used for IE
4343

44+
event.initEvent('change', false, true);
4445
fileChooser[0].dispatchEvent(event);
4546

4647
expect(gridUtil.logError).not.toHaveBeenCalled();

0 commit comments

Comments
 (0)