2018-10-19 15:17:02 +00:00
|
|
|
import { isManagement } from 'consul-ui/helpers/policy/is-management';
|
|
|
|
import { module, test } from 'qunit';
|
|
|
|
|
|
|
|
module('Unit | Helper | policy/is-management');
|
|
|
|
|
|
|
|
test('it returns true if the policy is the management policy', function(assert) {
|
|
|
|
const actual = isManagement([{ ID: '00000000-0000-0000-0000-000000000001' }]);
|
|
|
|
assert.ok(actual);
|
|
|
|
});
|
|
|
|
test("it returns false if the policy isn't the management policy", function(assert) {
|
|
|
|
const actual = isManagement([{ ID: '00000000-0000-0000-0000-000000000000' }]);
|
2018-11-09 11:13:20 +00:00
|
|
|
assert.notOk(actual);
|
2018-10-19 15:17:02 +00:00
|
|
|
});
|