-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add skeleton tests for flex general layout function
Co-authored-by: Charlotte Emms <charlotte.emms@guardian.co.uk> Co-authored-by: Georges Lebreton <georges.lebreton@guardian.co.uk>
- Loading branch information
1 parent
80389e6
commit 64b7684
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { trails } from 'fixtures/manual/trails'; | ||
import { determineCardPositions } from './FlexibleGeneral'; | ||
import { DCRFrontCard } from 'src/types/front'; | ||
Check failure on line 3 in dotcom-rendering/src/components/FlexibleGeneral.test.tsx GitHub Actions / lint / check
Check failure on line 3 in dotcom-rendering/src/components/FlexibleGeneral.test.tsx GitHub Actions / lint / check
|
||
|
||
const standardCard = { | ||
...trails[0], | ||
boostLevel: 'default', | ||
} satisfies DCRFrontCard; | ||
|
||
const boostedCard = { | ||
...trails[0], | ||
boostLevel: 'boost', | ||
} satisfies DCRFrontCard; | ||
|
||
describe('FlexibleGeneral', () => { | ||
it.skip('Should return a one card half width row if one standard card is provided', () => { | ||
expect(determineCardPositions([standardCard])).toEqual([]); | ||
}); | ||
it.skip('Should return a one full half width row if one standard boosted card is provided', () => { | ||
expect(determineCardPositions([boostedCard])).toEqual([]); | ||
}); | ||
it.skip('Should return a two card row if two standard cards are provided', () => { | ||
expect(determineCardPositions([standardCard, standardCard])).toEqual( | ||
[], | ||
); | ||
}); | ||
}); |