Skip to content

How to test @each and & with True #161

Description

@silvinabt87

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions