Created
July 11, 2021 10:22
-
-
Save dsibinski/5266776ab31d225e6dc97278d4f5f02f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('FormIoJsonProcessor', () => { | |
describe('test getComponentsCount', () => { | |
it('should return correct components count for a form with 6 not nested components', () => { | |
let formIoJsonProcessor = new FormIoJsonProcessor(); | |
expect(formIoJsonProcessor | |
.getRandomizableComponentsCount(formWith6NotNestedComponents)) | |
.toBe(6); | |
}) | |
it('should treat FieldSet and Columns as a single component when counting components', () => { | |
let formIoJsonProcessor = new FormIoJsonProcessor(); | |
expect(formIoJsonProcessor | |
.getRandomizableComponentsCount(formWith3NotNestedAnd4NestedIn2GroupsComponents)) | |
.toBe(5); | |
}) | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment