UNPKG

@o3r/rules-engine

Version:

This module provides a rule engine that can be executed on your Otter application to customize your application (translations, placeholders and configs) based on a json file generated by your CMS.

1 lines 1.31 kB
{"version":3,"file":"o3r-rules-engine-fixtures-jest.mjs","sources":["../../src/fixtures/jest/rules-engine.runner.service.fixture.jest.ts","../../src/fixtures/jest/o3r-rules-engine-fixtures-jest.ts"],"sourcesContent":["import type {\n Fact,\n Operator,\n RulesEngineRunnerService,\n UnaryOperator,\n} from '@o3r/rules-engine';\n\n/** Jest Fixture class for RulesEngineRunnerService */\nexport class RulesEngineRunnerServiceFixture implements Readonly<Partial<RulesEngineRunnerService>> {\n /** @inheritDoc */\n public upsertFacts: jest.Mock<void, [Fact<unknown> | Fact<unknown>[]]> = jest.fn();\n\n /** @inheritDoc */\n public upsertOperators: jest.Mock<void, [(Operator<any, any> | UnaryOperator<any>)[]]> = jest.fn();\n\n /** @inheritDoc */\n public enableRuleSetFor: jest.Mock<void, [string]> = jest.fn();\n\n /** @inheritDoc */\n public disableRuleSetFor: jest.Mock<void, [string]> = jest.fn();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAOA;MACa,+BAA+B,CAAA;AAA5C,IAAA,WAAA,GAAA;;AAES,QAAA,IAAA,CAAA,WAAW,GAAuD,IAAI,CAAC,EAAE,EAAE;;AAG3E,QAAA,IAAA,CAAA,eAAe,GAAmE,IAAI,CAAC,EAAE,EAAE;;AAG3F,QAAA,IAAA,CAAA,gBAAgB,GAA8B,IAAI,CAAC,EAAE,EAAE;;AAGvD,QAAA,IAAA,CAAA,iBAAiB,GAA8B,IAAI,CAAC,EAAE,EAAE;IACjE;AAAC;;ACpBD;;AAEG;;;;"}