BREAKING: Rename $true-terminal-output setting to $terminal-output
when importing as a module (with @use).
Projects not using Sass modules can still
@import '<path>/sass-true/sass/true'
and access the setting as $true-terminal-output
FEATURE: Added _index.scss at the project root,
for simpler import path: @use '<path>/sass-true'
FEATURE: New sass/_throw.scss module provides:
error() function & mixin for establishing “catchable”errors
global $catch-errors toggles how error() output ishandled
FEATURE: Support testing content properties which include a curlybrace.
Update dependencies
5.0.0 (06/03/19)
BREAKING: Update API for runSass, which now accepts two arguments: a
sassOptions object and a trueOptions object.
NEW: Add contains() mixin for more minute output comparisons.
Works the same as expect(), but doesn’t require a completematch.
Update docs
3.0.2 (10/6/17)
Dependency updates
3.0.1 (9/13/17)
Update docs
3.0.0 (8/26/17)
Update dependencies &release
3.0.0-beta.1 (6/1/17)
Added describe and it mixins,
as alias for test-module and test respectively.
Added $inspect argument to assert-equal and assert-unequal mixins,
for comparing inspect($assert) == inspect($expected)
instead of $assert == $expected.
This helps with several of the equality edge-cases listed below
(rounding andunits).
BREAKING: No more Ruby gem or RubyCLI
BREAKING: No more bowerpackage
BREAKING: Removes special-handling of equality,
in favor of allowing Sass to determine the best comparisons.
There are a few edge-cases to be aware of:
In some versions of Sass,
manipulated numbers and colors are compared without rounding,
so 1/3 != 0.333333 and lighten(#246, 15%) != #356a9f.
Use the $inspect argument to compare rounded outputvalues.
In all versions of Sass,
unitless numbers are considered comparable to all units,
so 1 == 1x where x represents any unit.
Use the $inspect argument to compare output values withunits.
Lists compare both values and delimiter,
so (one two three) != (one, two, three).
This can be particularly confusing for single-item lists,
which still have a delimiter assigned,
even though it is notused.
2.2.2 (4/11/17)
assert-true returns false on empty strings andlists
assert-false returns true on empty strings andlists
Module/Test/Assertion stats are included inreports
2.2.1 (2/7/17)
Output CSS context around Mocha parsingerrors.
Added $fail-on-error argument to report() mixin.
Set to true if you need the Sass compiler to fail
on brokentests.
Fix bug with assert-false causing it to fail on null values.
Allow unquoted descriptions and test/modulenames.
Fix bug throwing off test-count andreporting.
2.1.4 (12/22/16)
Fix default assertionmessages
Upgrade dependencies
2.0.2 (5/13/15)
Fixes debug inspector.
2.0.1 (5/9/15)
Improve internal logic, and namespace private functions behind _true-*.
Add assert(), input, and expect mixins for testing CSSoutput.
Support for LibSass.
Add Mocha JS integration.
— Create NPMpackage.
Simplify output options down to single $true-terminal-output setting.
Remove default-module-output, $default-test-output and $default-final-output.
Replace them with $true settings map: (output: css, summary: terminal css).
output handles test/module output, summary handles final output.
Assertions are always output to the terminal if theyfail.
Update to use Sass mapvariables.
Add report function and report mixin, for reporting finalresults.
Only register as a compass extension if compass is present.
Compass is no longer an explicitdependency.
Adjust the output styles to work with Sass 3.4
and have more visualconsistency.
0.1.5 (6/10/13)
Append actual results to custom failuremessages.
0.1.4 (6/9/13)
Null result is considered afailure.
Allow output to be turned off for certainmodules/tests/assertions.
0.1.3 (6/7/13)
Nest assertions within test() {} named tests.
Cleaner css output.
0.1.2 (6/7/13)
Use nesting for modules with test-module() {}
Added failure message argument to allassertions.
0.1.1 (6/6/13)
Fix bug in lib/true.rb compass pluginregistration.
0.1.0 (6/6/13)
assert-true(), assert-false(), assert-equal(), and assert-unequal().
pass() and fail() for tracking and reporting individualresults.
start-test-module() and report-test-result() for moduleresults.