Skip to content

Commit 67382f7

Browse files
committed
Allow multiple contains() expectations as well
1 parent fd63d2f commit 67382f7

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
- BREAKING: Remove the `$inspect` option from assertions,
66
since Sass has improved comparisons and changed inspection.
77
[#332](https://github.com/oddbird/true/pull/332)
8-
- NEW: Multiple `contains-string()` expectations can be used
9-
in a single assertion.
8+
- NEW: Multiple `contains()` and `contains-string()` expectations
9+
can be used in a single assertion.
1010
- INTERNAL: Update dependencies
1111

1212
**Migration**:

test/scss/assert/_output.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,25 @@
185185
}
186186
}
187187
}
188+
189+
@include it('Can contain multiple/overlapping assertions') {
190+
@include assert {
191+
@include output {
192+
.example {
193+
width: 12em;
194+
height: 1lh;
195+
border: thin solid;
196+
}
197+
}
198+
199+
@include contains { width: 12em; }
200+
@include contains { height: 1lh; }
201+
@include contains {
202+
height: 1lh;
203+
border: thin solid;
204+
}
205+
}
206+
}
188207
}
189208

190209
@include it('Can be used with @at-root') {

0 commit comments

Comments
 (0)