Skip to content

Commit

Permalink
test: export mocks for use elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgraeme committed Jan 30, 2025
1 parent 3b147ed commit b12c3d8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/components/organisms/ContentTile/ContentTile.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Tile, TileHeight, TileType } from '../../../types/tile';
import { render } from '../../__test__/test-utils';
import { ContentTile } from './index';

const ContentTileMock: Tile = {
export const ContentTileMock: Tile = {
id: '1',
type: TileType.Content,
active: true,
Expand Down
2 changes: 1 addition & 1 deletion lib/components/organisms/PointsTile/PointsTile.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Tile, TileHeight, TileType } from '../../../types/tile';
import { render } from '../../__test__/test-utils';
import { PointsTile } from './index';

const PointsTileMock: Tile = {
export const PointsTileMock: Tile = {
id: '1',
type: TileType.Points,
active: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { TileHeight, TileType } from '../../../types/tile';
import { render } from '../../__test__/test-utils';
import { RewardCategoryTile } from './index';

const RewardCategoryTileMock = {
export const RewardCategoryTileMock = {
tileHeight: TileHeight.Full,
active: true,
type: TileType.RewardCategory,
Expand Down
3 changes: 2 additions & 1 deletion lib/components/organisms/RewardTile/RewardTile.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import React from 'react';
import { Tile, TileHeight, TileType } from '../../../types/tile';
import { render } from '../../__test__/test-utils';
import { RewardTile } from './index';
const RewardTileMock: Tile = {

export const RewardTileMock: Tile = {
tileHeight: TileHeight.Full,
active: true,
type: TileType.Reward,
Expand Down

0 comments on commit b12c3d8

Please sign in to comment.