@carbon/styles
Version:
Styles for the Carbon Design System
28 lines (22 loc) • 680 B
JavaScript
/**
* Copyright IBM Corp. 2022
*
* 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
*/
;
const { SassRenderer } = require('@carbon/test-utils/scss');
const { render } = SassRenderer.create(__dirname);
describe('scss/components/fluid-text-input', () => {
test('Public API', async () => {
const { unwrap } = await render(`
@use 'sass:map';
@use 'sass:meta';
@use '../fluid-text-input';
$_: get('mixin', meta.mixin-exists('fluid-text-input', 'fluid-text-input'));
`);
expect(unwrap('mixin')).toBe(true);
});
});