Files
awx/awx/ui/client/tests/features/features.controller-test.js
John Mitchell e3d6803df7 Revert "update awFeature ldap to enterprise_auth"
This reverts commit bc49756ef6e792efd5a32d7342b0f7d1aa17a950.
2015-10-14 16:01:37 -04:00

28 lines
734 B
JavaScript

import '../support/node';
import featuresController from 'shared/features/features.controller';
describe('featuresController', function() {
it('checks if a feature is enabled', window.inject(['$rootScope', function($rootScope) {
var actual;
$rootScope.features = {
activity_streams: true,
ldap: false
};
// TODO: extract into test controller in describeModule
var Controller = featuresController[1];
var controller = new Controller($rootScope);
actual = controller.isFeatureEnabled('activity_streams');
expect(actual).to.be.true;
actual = controller.isFeatureEnabled('ldap');
expect(actual).to.be.false;
}]));
})