import blackAliasTokens from '@fluentui-react-native/design-tokens-win32/black/tokens-aliases.json'; import colorfulAliasTokens from '@fluentui-react-native/design-tokens-win32/colorful/tokens-aliases.json'; import darkGrayAliasTokens from '@fluentui-react-native/design-tokens-win32/darkgray/tokens-aliases.json'; import hcShadowTokens from '@fluentui-react-native/design-tokens-win32/hc/tokens-shadow.json'; import darkAliasTokens from '@fluentui-react-native/design-tokens-windows/dark/tokens-aliases.json'; import darkShadowTokens from '@fluentui-react-native/design-tokens-windows/dark/tokens-shadow.json'; import lightAliasTokens from '@fluentui-react-native/design-tokens-windows/light/tokens-aliases.json'; import lightShadowTokens from '@fluentui-react-native/design-tokens-windows/light/tokens-shadow.json'; import { mapPipelineToShadow } from '../mapPipelineToShadow'; import { mapPipelineToTheme, mapFontPipelineToTheme } from '../mapPipelineToTheme'; describe('mapPipelineToTheme test', () => { it('lightAliasTokens', () => { const aliasColorTokens = mapPipelineToTheme(lightAliasTokens); expect(aliasColorTokens).toMatchSnapshot(); }); it('darkAliasTokens', () => { const aliasColorTokens = mapPipelineToTheme(darkAliasTokens); expect(aliasColorTokens).toMatchSnapshot(); }); }); describe('mapFontPipelineToTheme test', () => { it('colorfulAliasTokens', () => { const fontTheme = mapFontPipelineToTheme(colorfulAliasTokens); expect(fontTheme).toMatchSnapshot(); }); it('darkGrayAliasTokens', () => { const fontTheme = mapFontPipelineToTheme(darkGrayAliasTokens); expect(fontTheme).toMatchSnapshot(); }); it('blackAliasTokens', () => { const fontTheme = mapFontPipelineToTheme(blackAliasTokens); expect(fontTheme).toMatchSnapshot(); }); }); describe('mapPipelineToShadow test', () => { it('lightShadowTokens', () => { const fontTheme = mapPipelineToShadow(lightShadowTokens); expect(fontTheme).toMatchSnapshot(); }); it('darkShadowTokens', () => { const fontTheme = mapPipelineToShadow(darkShadowTokens); expect(fontTheme).toMatchSnapshot(); }); it('hcShadowTokens', () => { const fontTheme = mapPipelineToShadow(hcShadowTokens); expect(fontTheme).toMatchSnapshot(); }); });