UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.

23 lines 738 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const validate_1 = require("../validate"); test('strategySchema', () => { const data = { description: '', name: '', displayName: '', editable: false, deprecated: false, parameters: [ { name: '', type: '', description: '', required: true, }, ], }; expect((0, validate_1.validateSchema)('#/components/schemas/strategySchema', data)).toBeUndefined(); expect((0, validate_1.validateSchema)('#/components/schemas/strategySchema', {})).toMatchSnapshot(); }); //# sourceMappingURL=strategy-schema.test.js.map