mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-4070] Add unit tests for linking rule sets (#2878)
* Commit before rebase * Added some tests in the rule set picker * Add unit tests for manage rules component
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
*/
|
||||
|
||||
import { RuleSet } from '../model/rule-set.model';
|
||||
import { otherFolderIdMock, otherFolderMock, owningFolderIdMock, owningFolderMock } from './node.mock';
|
||||
import { folderToLinkMock, otherFolderIdMock, otherFolderMock, owningFolderIdMock, owningFolderMock } from './node.mock';
|
||||
import { Rule } from '../model/rule.model';
|
||||
import { inheritedRulesMock, linkedRulesMock, ownedRulesMock, ruleMock } from './rules.mock';
|
||||
|
||||
@@ -139,3 +139,23 @@ export const inheritedRuleSetWithOnlyDisabledRulesMock: RuleSet = {
|
||||
};
|
||||
|
||||
export const ruleSetsMock: RuleSet[] = [inheritedRuleSetMock, ownedRuleSetMock, ruleSetWithLinkMock];
|
||||
|
||||
export const ruleSetWithNoRulesToLinkMock: RuleSet = {
|
||||
id: 'rule-set-to-link-with-no-rules',
|
||||
isLinkedTo: false,
|
||||
owningFolder: folderToLinkMock,
|
||||
linkedToBy: [],
|
||||
rules: [],
|
||||
hasMoreRules: false,
|
||||
loadingRules: false
|
||||
};
|
||||
|
||||
export const ruleSetWithOwnedRulesToLinkMock: RuleSet = {
|
||||
id: 'rule-set-to-link-with-no-rules',
|
||||
isLinkedTo: false,
|
||||
owningFolder: folderToLinkMock,
|
||||
linkedToBy: [],
|
||||
rules: ownedRulesMock,
|
||||
hasMoreRules: false,
|
||||
loadingRules: false
|
||||
};
|
||||
|
Reference in New Issue
Block a user