11import type { Variable } from "@styleframe/core" ;
22import { styleframe } from "@styleframe/core" ;
3- import { consume } from "@styleframe/transpiler" ;
3+ import { consumeCSS } from "@styleframe/transpiler" ;
44import { defaultBorderWidthValues , useBorderWidth } from "./useBorderWidth" ;
55
66describe ( "useBorderWidth" , ( ) => {
@@ -74,11 +74,11 @@ describe("useBorderWidth", () => {
7474 ] ) ;
7575 } ) ;
7676
77- it ( "should compile to correct CSS output using consume " , ( ) => {
77+ it ( "should compile to correct CSS output using consumeCSS " , ( ) => {
7878 const s = styleframe ( ) ;
7979 useBorderWidth ( s ) ;
8080
81- const css = consume ( s . root , s . options ) ;
81+ const css = consumeCSS ( s . root , s . options ) ;
8282
8383 expect ( css ) . toBe ( `:root {
8484 --border-width--none: 0;
@@ -93,7 +93,7 @@ describe("useBorderWidth", () => {
9393 const s = styleframe ( ) ;
9494 const { borderWidthMedium } = useBorderWidth ( s ) ;
9595
96- const css = consume ( borderWidthMedium , s . options ) ;
96+ const css = consumeCSS ( borderWidthMedium , s . options ) ;
9797
9898 expect ( css ) . toBe ( "--border-width--medium: medium;" ) ;
9999 } ) ;
@@ -124,7 +124,7 @@ describe("useBorderWidth", () => {
124124 fallback : undefined ,
125125 } ) ;
126126
127- const css = consume ( s . root , s . options ) ;
127+ const css = consumeCSS ( s . root , s . options ) ;
128128 expect ( css ) . toEqual ( `:root {
129129 --border-width--none: 0;
130130 --border-width--thin: thin;
@@ -143,7 +143,7 @@ describe("useBorderWidth", () => {
143143 variable ( borderWidthThin , "2px" ) ;
144144 } ) ;
145145
146- const css = consume ( s . root , s . options ) ;
146+ const css = consumeCSS ( s . root , s . options ) ;
147147
148148 expect ( css ) . toEqual ( `:root {
149149 --border-width--none: 0;
@@ -228,7 +228,7 @@ describe("useBorderWidth", () => {
228228 default : "@thick" ,
229229 } ) ;
230230
231- const css = consume ( s . root , s . options ) ;
231+ const css = consumeCSS ( s . root , s . options ) ;
232232
233233 expect ( css ) . toEqual ( `:root {
234234 --border-width--none: 0;
@@ -311,7 +311,7 @@ describe("useBorderWidth", () => {
311311 variable ( "border-width" , s . ref ( borderWidthThick ) ) ;
312312 } ) ;
313313
314- const css = consume ( s . root , s . options ) ;
314+ const css = consumeCSS ( s . root , s . options ) ;
315315 expect ( css ) . toEqual ( `:root {
316316 --border-width--none: 0;
317317 --border-width--thin: thin;
@@ -342,7 +342,7 @@ describe("useBorderWidth", () => {
342342 variable ( buttonBorderWidth , s . ref ( borderWidthMedium ) ) ;
343343 } ) ;
344344
345- const css = consume ( s . root , s . options ) ;
345+ const css = consumeCSS ( s . root , s . options ) ;
346346 expect ( css ) . toEqual ( `:root {
347347 --border-width--none: 0;
348348 --border-width--thin: thin;
@@ -365,7 +365,7 @@ describe("useBorderWidth", () => {
365365 variable ( borderWidthThin , s . ref ( borderWidthThick ) ) ;
366366 } ) ;
367367
368- const css = consume ( s . root , s . options ) ;
368+ const css = consumeCSS ( s . root , s . options ) ;
369369 expect ( css ) . toEqual ( `:root {
370370 --border-width--none: 0;
371371 --border-width--thin: thin;
@@ -396,7 +396,7 @@ describe("useBorderWidth", () => {
396396 variable ( "border-width" , s . ref ( borderWidthNone ) ) ;
397397 } ) ;
398398
399- const css = consume ( s . root , s . options ) ;
399+ const css = consumeCSS ( s . root , s . options ) ;
400400 expect ( css ) . toEqual ( `:root {
401401 --border-width--none: 0;
402402 --border-width--thin: thin;
@@ -434,7 +434,7 @@ describe("useBorderWidth", () => {
434434 variable ( borderStyle , "double" ) ;
435435 } ) ;
436436
437- const css = consume ( s . root , s . options ) ;
437+ const css = consumeCSS ( s . root , s . options ) ;
438438 expect ( css ) . toEqual ( `:root {
439439 --border-width--none: 0;
440440 --border-width--thin: thin;
@@ -467,7 +467,7 @@ describe("useBorderWidth", () => {
467467 variable ( borderWidthThin , "3px" ) ;
468468 } ) ;
469469
470- const css = consume ( s . root , s . options ) ;
470+ const css = consumeCSS ( s . root , s . options ) ;
471471 expect ( css ) . toEqual ( `:root {
472472 --border-width--none: 0;
473473 --border-width--thin: thin;
@@ -493,7 +493,7 @@ describe("useBorderWidth", () => {
493493 variable ( "border-width" , s . ref ( borderWidthNone ) ) ;
494494 } ) ;
495495
496- const css = consume ( s . root , s . options ) ;
496+ const css = consumeCSS ( s . root , s . options ) ;
497497 expect ( css ) . toEqual ( `:root {
498498 --border-width--none: 0;
499499 --border-width--thin: thin;
0 commit comments