Add policy support for linux (#272579)

This commit is contained in:
Paul
2025-10-22 16:01:59 -07:00
committed by GitHub
parent 9308f9a06e
commit e81696f60d
34 changed files with 600 additions and 21 deletions

View File

@@ -79,6 +79,12 @@ suite('BooleanPolicy', () => {
const presentation = policy.renderADMLPresentation();
assert_1.default.strictEqual(presentation, '<presentation id="TestBooleanPolicy"><checkBox refId="TestBooleanPolicy">TestBooleanPolicy</checkBox></presentation>');
});
test('should render JSON value correctly', () => {
const policy = booleanPolicy_js_1.BooleanPolicy.from(mockCategory, mockPolicy);
assert_1.default.ok(policy);
const jsonValue = policy.renderJsonValue();
assert_1.default.strictEqual(jsonValue, false);
});
test('should render profile value correctly', () => {
const policy = booleanPolicy_js_1.BooleanPolicy.from(mockCategory, mockPolicy);
assert_1.default.ok(policy);