Skip to content

Commit

Permalink
Remove refs to typography API from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmockett committed Aug 9, 2024
1 parent 238dfd3 commit c8f1ac5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 686 deletions.
40 changes: 1 addition & 39 deletions libs/@guardian/source/src/foundations/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,7 @@ import * as pkgExports from './index';

// this makes sure no type exports have been removed
// it won't catch that new ones have been added, but can anyone?
export type {
Breakpoint,
ScaleUnit,
Category,
LineHeight,
FontWeight,
FontStyle,
FontWeightDefinition,
Option,
TypographyStyles,
TypographySizes,
TitlepieceSizes,
HeadlineSizes,
BodySizes,
TextSansSizes,
Fs,
FontScaleFunction,
FontScaleFunctionStr,
FontScaleArgs,
} from './index';
export type { Breakpoint } from './index';

it('Should have exactly these exports', () => {
expect(Object.keys(pkgExports).sort()).toEqual([
Expand All @@ -45,9 +26,6 @@ it('Should have exactly these exports', () => {
'articleItalic17Object',
'background',
'between',
'body',
'bodyObjectStyles',
'bodySizes',
'border',
'brand',
'brandAlt',
Expand All @@ -66,11 +44,8 @@ it('Should have exactly these exports', () => {
'focus',
'focusHalo',
'focusHaloSpaced',
'fontWeights',
'fonts',
'from',
'generateSourceId',
'headline',
'headlineBold14',
'headlineBold14Object',
'headlineBold15',
Expand Down Expand Up @@ -171,25 +146,18 @@ it('Should have exactly these exports', () => {
'headlineMediumItalic50Object',
'headlineMediumItalic64',
'headlineMediumItalic64Object',
'headlineObjectStyles',
'headlineSizes',
'height',
'iconSize',
'labs',
'lifestyle',
'line',
'lineHeights',
'neutral',
'news',
'opinion',
'palette',
'pxToRem',
'remBodySizes',
'remHeadlineSizes',
'remHeight',
'remSpace',
'remTextSansSizes',
'remTitlepieceSizes',
'remWidth',
'resets',
'rootPixelFontSize',
Expand Down Expand Up @@ -224,7 +192,6 @@ it('Should have exactly these exports', () => {
'textEgyptianItalic15Object',
'textEgyptianItalic17',
'textEgyptianItalic17Object',
'textSans',
'textSans12',
'textSans12Object',
'textSans14',
Expand Down Expand Up @@ -273,17 +240,12 @@ it('Should have exactly these exports', () => {
'textSansItalic28Object',
'textSansItalic34',
'textSansItalic34Object',
'textSansObjectStyles',
'textSansSizes',
'titlepiece',
'titlepiece42',
'titlepiece42Object',
'titlepiece50',
'titlepiece50Object',
'titlepiece70',
'titlepiece70Object',
'titlepieceObjectStyles',
'titlepieceSizes',
'transitions',
'until',
'visuallyHidden',
Expand Down
Loading

0 comments on commit c8f1ac5

Please sign in to comment.