Skip to content

Commit

Permalink
Move window.angular to helper
Browse files Browse the repository at this point in the history
  • Loading branch information
ZitaNemeckova committed Dec 4, 2018
1 parent d4ed588 commit 3262950
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/javascript/spec/helpers/angularHelper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
window.angular = require('angular');
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require('../helpers/angularHelper.js');
require('../helpers/addFlashHelper.js');
require('../helpers/sprintfHelper.js');
require('../helpers/miqAjaxButtonHelper.js');

import 'angular-mocks';
require('angular-mocks');
import getGridChecks from '../../packs/toolbar-actions-common';
import * as deleteActions from '../../toolbar-actions/delete';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require('../helpers/angularHelper.js');
require('../helpers/APIHelper.js');
require('../helpers/addFlashHelper.js');
require('../helpers/sprintfHelper.js');

import 'angular-mocks';
require('angular-mocks');
import getGridChecks from '../../packs/toolbar-actions-common';
import { onCustomAction } from '../../toolbar-actions/custom-action';

Expand Down
1 change: 0 additions & 1 deletion config/jest.setup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
window.angular = require('angular');
window.Rx = require('rxjs');
window.$ = require('jquery');
window.__ = (x) => x;
Expand Down

0 comments on commit 3262950

Please sign in to comment.