@@ -118,15 +118,12 @@ void sharedTests(Future<TestProcess> runSass(Iterable<String> arguments)) {
118118
119119 group ("an evaluation-time deprecation" , () {
120120 setUp (
121- () => d.file ("test.scss" , """
122- @use 'sass:math';
123- a {b: math.random(1px)}
124- """ ).create (),
121+ () => d.file ("test.scss" , "a {b: nth(1 2 3, 1)}" ).create (),
125122 );
126123
127124 test ("in immediate mode" , () async {
128125 var sass = await runSass ([
129- "--silence-deprecation=function-units " ,
126+ "--silence-deprecation=global-builtin " ,
130127 "test.scss" ,
131128 ]);
132129 expect (sass.stderr, emitsDone);
@@ -137,7 +134,7 @@ void sharedTests(Future<TestProcess> runSass(Iterable<String> arguments)) {
137134 var sass = await runSass ([
138135 "--watch" ,
139136 "--poll" ,
140- "--silence-deprecation=function-units " ,
137+ "--silence-deprecation=global-builtin " ,
141138 "test.scss:out.css" ,
142139 ]);
143140 expect (sass.stderr, emitsDone);
@@ -152,15 +149,13 @@ void sharedTests(Future<TestProcess> runSass(Iterable<String> arguments)) {
152149 test ("in repl mode" , () async {
153150 var sass = await runSass ([
154151 "--interactive" ,
155- "--silence-deprecation=function-units " ,
152+ "--silence-deprecation=global-builtin " ,
156153 ]);
157154 expect (sass.stderr, emitsDone);
158- sass.stdin.writeln ("@use 'sass:math'" );
159- await expectLater (sass.stdout, emits (">> @use 'sass:math'" ));
160- sass.stdin.writeln ("math.random(1px)" );
155+ sass.stdin.writeln ("nth(1 2 3, 1)" );
161156 await expectLater (
162157 sass.stdout,
163- emitsInOrder ([">> math.random(1px )" , "1" ]),
158+ emitsInOrder ([">> nth(1 2 3, 1 )" , "1" ]),
164159 );
165160 await sass.kill ();
166161 });
@@ -250,15 +245,12 @@ void sharedTests(Future<TestProcess> runSass(Iterable<String> arguments)) {
250245
251246 group ("an evaluation-time deprecation" , () {
252247 setUp (
253- () => d.file ("test.scss" , """
254- @use 'sass:math';
255- a {b: math.random(1px)}
256- """ ).create (),
248+ () => d.file ("test.scss" , "a {b: nth(1 2 3, 1)}" ).create (),
257249 );
258250
259251 test ("in immediate mode" , () async {
260252 var sass = await runSass ([
261- "--fatal-deprecation=function-units " ,
253+ "--fatal-deprecation=global-builtin " ,
262254 "test.scss" ,
263255 ]);
264256 expect (sass.stderr, emits (startsWith ("Error: " )));
@@ -269,7 +261,7 @@ void sharedTests(Future<TestProcess> runSass(Iterable<String> arguments)) {
269261 var sass = await runSass ([
270262 "--watch" ,
271263 "--poll" ,
272- "--fatal-deprecation=function-units " ,
264+ "--fatal-deprecation=global-builtin " ,
273265 "test.scss:out.css" ,
274266 ]);
275267 await expectLater (sass.stderr, emits (startsWith ("Error: " )));
@@ -286,15 +278,13 @@ void sharedTests(Future<TestProcess> runSass(Iterable<String> arguments)) {
286278 test ("in repl mode" , () async {
287279 var sass = await runSass ([
288280 "--interactive" ,
289- "--fatal-deprecation=function-units " ,
281+ "--fatal-deprecation=global-builtin " ,
290282 ]);
291- sass.stdin.writeln ("@use 'sass:math'" );
292- await expectLater (sass.stdout, emits (">> @use 'sass:math'" ));
293- sass.stdin.writeln ("math.random(1px)" );
283+ sass.stdin.writeln ("nth(1 2 3, 1)" );
294284 await expectLater (
295285 sass.stdout,
296286 emitsInOrder ([
297- ">> math.random(1px )" ,
287+ ">> nth(1 2 3, 1 )" ,
298288 emitsThrough (startsWith ("Error: " )),
299289 emitsThrough (contains ("Remove this setting" )),
300290 ]),
@@ -316,12 +306,12 @@ void sharedTests(Future<TestProcess> runSass(Iterable<String> arguments)) {
316306
317307 test ("in immediate mode" , () async {
318308 var sass = await runSass ([
319- "--future-deprecation=function-units " ,
309+ "--future-deprecation=global-builtin " ,
320310 "test.scss" ,
321311 ]);
322312 expect (
323313 sass.stderr,
324- emits (contains ("function-units is not a future deprecation" )),
314+ emits (contains ("global-builtin is not a future deprecation" )),
325315 );
326316 await sass.shouldExit (0 );
327317 });
@@ -330,12 +320,12 @@ void sharedTests(Future<TestProcess> runSass(Iterable<String> arguments)) {
330320 var sass = await runSass ([
331321 "--watch" ,
332322 "--poll" ,
333- "--future-deprecation=function-units " ,
323+ "--future-deprecation=global-builtin " ,
334324 "test.scss:out.css" ,
335325 ]);
336326 expect (
337327 sass.stderr,
338- emits (contains ("function-units is not a future deprecation" )),
328+ emits (contains ("global-builtin is not a future deprecation" )),
339329 );
340330
341331 await expectLater (
0 commit comments