Skip to content

Commit

Permalink
fix(core/tests): Make sure angular-ui-bootstrap is available for nece…
Browse files Browse the repository at this point in the history
…ssary tests
  • Loading branch information
Justin Reynolds committed Apr 24, 2018
1 parent c192909 commit 974ab5d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Expand Up @@ -6,7 +6,7 @@ describe('Controller: Config', function() {
var $uibModal;
var application;

beforeEach(window.module(require('./applicationAttributes.directive.js').name));
beforeEach(window.module(require('./applicationAttributes.directive.js').name, require('angular-ui-bootstrap')));

beforeEach(
window.inject(function(_$controller_, _$uibModal_) {
Expand Down
Expand Up @@ -25,7 +25,14 @@ function fakeAccount(provider: string): IAccountDetails {
}

describe('providerSelectionService: API', () => {
beforeEach(mock.module(APPLICATION_MODEL_BUILDER, PROVIDER_SELECTION_SERVICE, ACCOUNT_SERVICE));
beforeEach(
mock.module(
APPLICATION_MODEL_BUILDER,
PROVIDER_SELECTION_SERVICE,
ACCOUNT_SERVICE,
require('angular-ui-bootstrap'),
),
);

// required to ensure registry provider is available
let $q: IQService,
Expand Down
Expand Up @@ -8,7 +8,7 @@ import { TRAVIS_STAGE, TravisStage } from './travisStage';
describe('Travis Stage Controller', () => {
let $scope: IScope, igorService: IgorService, $q: IQService, $ctrl: IControllerService;

beforeEach(mock.module(TRAVIS_STAGE));
beforeEach(mock.module(TRAVIS_STAGE, require('angular-ui-bootstrap')));

beforeEach(
mock.inject(
Expand Down

0 comments on commit 974ab5d

Please sign in to comment.