()
| 41 | } |
| 42 | |
| 43 | assignColor() { |
| 44 | const colorIndex = this.getValues() |
| 45 | .map((mapping) => colorOptions.indexOf(mapping.color)) |
| 46 | .sort() |
| 47 | .reduce((acc, currentValue) => (acc === currentValue ? acc + 1 : acc), 0); |
| 48 | |
| 49 | return colorOptions[colorIndex % colorOptions.length]; |
| 50 | } |
| 51 | |
| 52 | assignId(schema) { |
| 53 | const schemaCount = this.getSchemaCount(schema); |
no test coverage detected