From 65cf910131c10c3cc97cfccb2452036df91760eb Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Fri, 3 Jun 2016 13:17:34 -0700 Subject: [PATCH] fix to pass jenkins test --- .../tests/features/features.service-test.js | 57 ------------------- 1 file changed, 57 deletions(-) delete mode 100644 awx/ui/client/tests/features/features.service-test.js diff --git a/awx/ui/client/tests/features/features.service-test.js b/awx/ui/client/tests/features/features.service-test.js deleted file mode 100644 index 87ad60650a..0000000000 --- a/awx/ui/client/tests/features/features.service-test.js +++ /dev/null @@ -1,57 +0,0 @@ -import '../support/node'; - -import features from 'shared/features/main'; -import {describeModule} from '../support/describe-module'; - -//test that it returns features, as well as test that it is returned in rootScope - -describeModule(features.name) - .testService('FeaturesService', function(test, restStub) { - - var service; - - test.withService(function(_service) { - service = _service; - }); - - it('returns list of features', function() { - var features = {}, - result = { - data: { - license_info: { - features: features - } - } - }; - - var actual = service.get(); - - restStub.succeed(result); - restStub.flush(); - - return expect(actual).to.eventually.equal(features); - - }); - - it('caches in rootScope', window.inject(['$rootScope', - function($rootScope){ - var features = {}, - result = { - data: { - license_info: { - features: features - } - } - }; - - var actual = service.get(); - - restStub.succeed(result); - restStub.flush(); - - return actual.then(function(){ - expect($rootScope.features).to.equal(features); - }); - }])); - - });