Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
Browse files Browse the repository at this point in the history
… fixup! fixup! Feat(web): Introduce stacking of the `Toast` queue
  • Loading branch information
adamkudrna committed Apr 4, 2024
1 parent 2287cf1 commit c60866d
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions packages/web/src/scss/tools/__tests__/_dictionaries.test.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
@include true.assert {
@include true.output {
@include dictionaries.generate-colors(
'Test',
('primary'),
(
$class-name: 'Test',
$dictionary-values: (
'primary',
),
$config: (
color: 'default',
)
);
Expand All @@ -26,6 +28,33 @@
}
}
}

@include true.it('should generate correct color classes and data attributes based on a dictionary') {
@include true.assert {
@include true.output {
@include dictionaries.generate-colors(
$class-name: 'Test',
$dictionary-values: (
'primary',
),
$config: (
color: 'default',
),
$child-selector: ' > .Test__box',
$generate-data-attribute: true
);
}

@include true.expect {
.Test--primary > .Test__box,
.Test[data-spirit-color='primary'] > .Test__box {
--test-color: #29616f;

color: var(--test-color);
}
}
}
}
}

@include true.describe('generate-link-colors mixin') {
Expand Down

0 comments on commit c60866d

Please sign in to comment.