From 8012e0e9c93d4936fd6168122f4e964484c38e34 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Tue, 7 Sep 2021 21:25:08 +0200 Subject: [PATCH] Avoid the /-as-division warning when running the dart_api tests (#1467) --- test/dart_api/value/number_test.dart | 2 +- test/dart_api/value/utils.dart | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/dart_api/value/number_test.dart b/test/dart_api/value/number_test.dart index c8624ee48..fb9f9f328 100644 --- a/test/dart_api/value/number_test.dart +++ b/test/dart_api/value/number_test.dart @@ -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"])); diff --git a/test/dart_api/value/utils.dart b/test/dart_api/value/utils.dart index fd48cf42a..37954509e 100644 --- a/test/dart_api/value/utils.dart +++ b/test/dart_api/value/utils.dart @@ -12,6 +12,7 @@ Value parseValue(String source) { late Value value; compileString(""" @use "sass:list"; + @use "sass:math"; a {b: foo(($source))} """, functions: [