I've found the documentation to test mixins and functions, but I cannot find the way to test @each and how classes are generated with "&". I'm trying to integrate this library in an open source project and I'm having a hard time doing it.
As an example, I would need to test the following:
@each $color-namespace, $brand-color in $brand-colors {
.has-background-#{$color-namespace} {
background-color: $brand-color;
}
.has-text-#{$color-namespace}, // Bulma convention
.has-color-#{$color-namespace} {
color: $brand-color;
}
}
If you could help me with this, I would appreciate it!
I've found the documentation to test mixins and functions, but I cannot find the way to test @each and how classes are generated with "&". I'm trying to integrate this library in an open source project and I'm having a hard time doing it.
As an example, I would need to test the following:
If you could help me with this, I would appreciate it!