1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Fix smart search directive unit tests

This commit is contained in:
mabashian 2018-06-12 13:59:21 -04:00
parent 36732d8113
commit ab53fd0874

View File

@ -8,7 +8,6 @@ describe('Directive: Smart Search', () => {
dom, dom,
$compile, $compile,
$state = {}, $state = {},
$stateParams,
GetBasePath, GetBasePath,
QuerySet, QuerySet,
ConfigService = {}, ConfigService = {},
@ -44,6 +43,7 @@ describe('Directive: Smart Search', () => {
translateFilter = jasmine.createSpy('translateFilter'); translateFilter = jasmine.createSpy('translateFilter');
i18n = jasmine.createSpy('i18n'); i18n = jasmine.createSpy('i18n');
$state = jasmine.createSpyObj('$state', ['go']); $state = jasmine.createSpyObj('$state', ['go']);
$state.go.and.callFake(() => { return { then: function(){} }; });
$provide.value('ConfigService', ConfigService); $provide.value('ConfigService', ConfigService);
$provide.value('QuerySet', QuerySet); $provide.value('QuerySet', QuerySet);