mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-19 06:23:32 +00:00
test: Cover Every Palette Slot in Repeatable Samples
This commit is contained in:
parent
37df3c1146
commit
9dfdea13cb
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ describe('PixelCard palette', () => {
|
|||
.spyOn(HTMLElement.prototype, 'getBoundingClientRect')
|
||||
.mockReturnValue({ width: 200, height: 200 } as DOMRect);
|
||||
let sample = 0;
|
||||
jest.spyOn(Math, 'random').mockImplementation(() => ((sample++ % 3) + 0.5) / 3);
|
||||
jest.spyOn(Math, 'random').mockImplementation(() => ((sample++ % 7) + 0.5) / 7);
|
||||
render(<PixelCard progress={1} />);
|
||||
|
||||
await waitFor(() =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue