Skip to content

Commit 42dce15

Browse files
chore: clean up analysis types + endpoint
1 parent 21bcb58 commit 42dce15

15 files changed

Lines changed: 190 additions & 447 deletions

File tree

__tests__/lib/favorites.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
getFavoriteGame,
88
getFavoritesAsWebGames,
99
} from 'src/lib/favorites'
10-
import { MaiaGameEntry } from 'src/types'
10+
import { MaiaGameListEntry } from 'src/types'
1111

1212
// Mock localStorage
1313
const localStorageMock = (() => {
@@ -46,7 +46,7 @@ describe('favorites', () => {
4646
localStorageMock.clear()
4747
})
4848

49-
const mockGame: MaiaGameEntry = {
49+
const mockGame: MaiaGameListEntry = {
5050
id: 'test-game-1',
5151
type: 'play',
5252
label: 'You vs. Maia 1600',
@@ -124,7 +124,7 @@ describe('favorites', () => {
124124
it('should limit favorites to 100 entries', async () => {
125125
// Add 101 favorites
126126
for (let i = 0; i < 101; i++) {
127-
const game: MaiaGameEntry = {
127+
const game: MaiaGameListEntry = {
128128
id: `game-${i}`,
129129
type: 'play',
130130
label: `Game ${i}`,

0 commit comments

Comments
 (0)