mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-03 10:34:18 -07:00
* Add new BetaBanner and remove legacy Alerts - add BetaBanner component and test - update AboutCard test - remove AlertWrapper component, copy and tests - remove AlertWrapper from all pages - add BetaBanner copy and intl - update logo and color - add styles using USWDS tokens to globals.scss * Add Beta pill to header - refactor Header to use Grid and USWDS - refactor global.scss to use Grid and USWDS - updates snapshots * Move styles from global to modules - move BetaBanner styles from global to modules - move J40Header to a folder component and module styles - add J40Header unit test - add a design-system.scss file that allows USWDS styles in modules - updates snapshots * Update en.json file * Trigger Build * Add initial Spanish content - add README for translation team - add createSpanishJson script - add initial version of es.json - add a spanish string variable to test translation * Add retry and timeout config to stalled test * Remove redundant test cases for AboutCard - update snapshot * Update BetaBanner description
16 lines
440 B
TypeScript
16 lines
440 B
TypeScript
import * as React from 'react';
|
|
import {render} from '@testing-library/react';
|
|
import {LocalizedComponent} from '../../test/testHelpers';
|
|
import BetaBanner from './BetaBanner';
|
|
|
|
describe('rendering of the BetaBanner', () => {
|
|
const {asFragment} = render(
|
|
<LocalizedComponent>
|
|
<BetaBanner />
|
|
</LocalizedComponent>,
|
|
);
|
|
|
|
it('checks if component renders', () => {
|
|
expect(asFragment()).toMatchSnapshot();
|
|
});
|
|
});
|