UNPKG

@carbon/styles

Version:
38 lines (30 loc) 860 B
/** * Copyright IBM Corp. 2018, 2023 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * @jest-environment node */ 'use strict'; const { SassRenderer } = require('@carbon/test-utils/scss'); const { render } = SassRenderer.create(__dirname); describe('@carbon/styles/scss/motion', () => { test('Public API', async () => { const { get } = await render(` @use 'sass:meta'; @use '../motion'; $_: get('api', ( variables: meta.module-variables('motion'), functions: ( motion: meta.function-exists('motion', 'motion'), ), mixins: ( motion: meta.mixin-exists('motion', 'motion'), ), )); `); const { value: api } = get('api'); expect(api).toMatchSnapshot(); }); });