Skip to content

Commit

Permalink
Avoid the /-as-division warning when running the dart_api tests (#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
stof authored Sep 7, 2021
1 parent 49c75b1 commit 8012e0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/dart_api/value/number_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ void main() {

group("a number with numerator and denominator units", () {
late SassNumber value;
setUp(() => value = parseValue("123px / 5ms") as SassNumber);
setUp(() => value = parseValue("math.div(123px, 5ms)") as SassNumber);

test("has those units", () {
expect(value.numeratorUnits, equals(["px"]));
Expand Down
1 change: 1 addition & 0 deletions test/dart_api/value/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Value parseValue(String source) {
late Value value;
compileString("""
@use "sass:list";
@use "sass:math";
a {b: foo(($source))}
""", functions: [
Expand Down

0 comments on commit 8012e0e

Please sign in to comment.