/** * Copyright (c) 2023 Google LLC * SPDX-License-Identifier: MIT */ import noop from 'lodash/noop'; import React from 'react'; import { screen } from '@testing-library/react'; import { renderWithTheme } from '@looker/components-test-utils'; import { Token } from './Token'; describe('Token', () => { it('should render a Token with subdued', () => { renderWithTheme( ); const token = screen.getByRole('button'); expect(token).toHaveAttribute('aria-selected', 'false'); }); it('should render a Token without subdued', () => { renderWithTheme( ); const token = screen.getByRole('button'); expect(token).toHaveAttribute('aria-selected', 'true'); }); });