diff --git a/exporters/variables-scss/src/generators/__tests__/stylesGenerator.test.ts b/exporters/variables-scss/src/generators/__tests__/stylesGenerator.test.ts index 3bfc2268ab..a7bd4ba1c5 100644 --- a/exporters/variables-scss/src/generators/__tests__/stylesGenerator.test.ts +++ b/exporters/variables-scss/src/generators/__tests__/stylesGenerator.test.ts @@ -22,31 +22,31 @@ describe('stylesGenerator', () => { const dataProvider = [ { token: exampleDimensionAndStringTokens.get('dimensionRef') as DimensionToken, - expectedStyles: '$grid-spacing-desktop: 32px !default;', - hasParentPrefix: true, description: 'dimension type token with parent prefix', + hasParentPrefix: true, hasJsOutput: false, + expectedStyles: '$grid-spacing-desktop: 32px !default;', }, { token: exampleDimensionAndStringTokens.get('dimensionRef') as DimensionToken, - expectedStyles: '$desktop: 32px !default;', - hasParentPrefix: false, description: 'dimension type token without parent prefix', + hasParentPrefix: false, hasJsOutput: false, + expectedStyles: '$desktop: 32px !default;', }, { token: exampleDimensionAndStringTokens.get('stringRef') as StringToken, - expectedStyles: '$grid-columns: 12 !default;', - hasParentPrefix: true, description: 'string type token with parent prefix', + hasParentPrefix: true, hasJsOutput: false, + expectedStyles: '$grid-columns: 12 !default;', }, { token: exampleDimensionAndStringTokens.get('stringRef') as StringToken, - expectedStyles: '$columns: 12 !default;', - hasParentPrefix: false, description: 'string type token without parent prefix', + hasParentPrefix: false, hasJsOutput: false, + expectedStyles: '$columns: 12 !default;', }, { token: { @@ -54,52 +54,52 @@ describe('stylesGenerator', () => { name: 'unsupportedToken', tokenType: TokenType.duration, } as Token, - expectedStyles: null, - hasParentPrefix: true, description: 'unsupported token type', + hasParentPrefix: true, hasJsOutput: false, + expectedStyles: null, }, { token: exampleDimensionAndStringTokens.get('dimensionRef') as DimensionToken, - expectedStyles: `export const gridSpacingDesktop = '32px';`, - hasParentPrefix: true, description: 'dimension type token with parent prefix and js output', + hasParentPrefix: true, hasJsOutput: true, + expectedStyles: `export const gridSpacingDesktop = '32px';`, }, { token: exampleDimensionAndStringTokens.get('dimensionRef') as DimensionToken, - expectedStyles: `export const desktop = '32px';`, - hasParentPrefix: false, description: 'dimension type token without parent prefix and js output', + hasParentPrefix: false, hasJsOutput: true, + expectedStyles: `export const desktop = '32px';`, }, { token: exampleDimensionAndStringTokens.get('stringRef') as StringToken, - expectedStyles: `export const gridColumns = '12';`, - hasParentPrefix: true, description: 'string type token with parent prefix and js output', + hasParentPrefix: true, hasJsOutput: true, + expectedStyles: `export const gridColumns = '12';`, }, { token: exampleDimensionAndStringTokens.get('stringRef') as StringToken, - expectedStyles: `export const columns = '12';`, - hasParentPrefix: false, description: 'string type token without parent prefix and js output', + hasParentPrefix: false, hasJsOutput: true, + expectedStyles: `export const columns = '12';`, }, { token: exampleShadowTokens.get('shadowRef') as ShadowToken, - expectedStyles: `$shadow-100: 0 2px 8px 0 #00000026 !default;`, - hasParentPrefix: false, description: 'shadow type token without parent prefix', + hasParentPrefix: false, hasJsOutput: false, + expectedStyles: `$shadow-100: 0 2px 8px 0 #00000026 !default;`, }, { token: exampleGradientTokens.get('gradientRef') as GradientToken, - expectedStyles: `$basic-overlay: linear-gradient(var(--gradient-angle, 90deg), #ffffffff 0%, #ffffff00 100%) !default;`, - hasParentPrefix: false, description: 'gradient type token without parent prefix', + hasParentPrefix: false, hasJsOutput: false, + expectedStyles: `$basic-overlay: linear-gradient(var(--gradient-angle, 90deg), #ffffffff 0%, #ffffff00 100%) !default;`, }, ];