@carbon/styles
Version:
Styles for the Carbon Design System
37 lines (31 loc) • 931 B
JavaScript
/**
* 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('scss/components/list-box', () => {
test('Public API', async () => {
const { unwrap } = await render(`
'sass:map';
'sass:meta';
'../list-box';
$_: get('mixin', meta.mixin-exists('list-box', 'list-box'));
$_: get('variables', map.keys(meta.module-variables('list-box')));
`);
expect(unwrap('mixin')).toBe(true);
expect(unwrap('variables')).toMatchInlineSnapshot(`
[
"list-box-width",
"list-box-height",
"list-box-inline-height",
"list-box-menu-width",
]
`);
});
});