Skip to content

Commit

Permalink
fix changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
jgerigmeyer committed Nov 9, 2022
1 parent 3ecec59 commit b5d3445
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## UNRELEASED

- FEATURE: `contains()` checks multiple block with matching selectors.
[#243](https://github.com/oddbird/true/pull/243)
- 🏠 INTERNAL: Remove documentation from npm package

## 7.0.0-beta.0 (09/16/22)
Expand All @@ -12,8 +14,6 @@
path (or string), 3) optional Sass options
- BREAKING: Require `sass` as a peer-dependency, removing True `sass` option
- BREAKING: Drop support for node < 14.15.0
- FEATURE: `contains()` checks multiple block with matching selectors.
[#243](https://github.com/oddbird/true/pull/243)
- INTERNAL: Use both Jest and Mocha for internal testing
- INTERNAL: Update dependencies

Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ const contains = function (output: string, expected: string) {
const expectedProperties = block.output
.split(';')
.map((propertyValuePair) => propertyValuePair.trim())
.filter((innerBlock) => innerBlock !== ' {' && innerBlock !== '}');
.filter(
(innerBlock) =>
innerBlock && innerBlock !== ' {' && innerBlock !== '}',
);

// This is the assertion itself!
return expectedProperties.every((property) =>
Expand Down

0 comments on commit b5d3445

Please sign in to comment.