Skip to content

Bet Keeper v2.0

Bet Keeper v2.0 #34

GitHub Actions / Jest Tests succeeded Feb 22, 2024 in 0s

59 passed, 0 failed and 0 skipped

Tests passed successfully

✅ test-report.xml

59 tests were completed in 10s with 59 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
src/layout/dialog/Dialog.test.tsx 5✅ 109ms
src/layout/navigation/Navigation.test.tsx 2✅ 109ms
src/providers/DataSourceProvider.test.tsx 6✅ 442ms
src/providers/hooks/LocalStorageProvider.test.ts 6✅ 29ms
src/views/dashboard/components/BetItem/BetItem.test.tsx 12✅ 565ms
src/views/dashboard/components/BetPanel.test.tsx 6✅ 1s
src/views/dashboard/components/ManageBetDialog.test.tsx 7✅ 1s
src/views/dashboard/components/widgets/Widget.test.tsx 3✅ 428ms
src/views/settings/type/FirebaseImportDialog.test.tsx 3✅ 404ms
src/views/settings/type/Settings.test.tsx 9✅ 477ms

✅ src/layout/dialog/Dialog.test.tsx

src/layout/dialog/Dialog.test.tsx
  ✅ Dialog Component Test > Should be visible when open=true
  ✅ Dialog Component Test > Should not be rendered when open=false
  ✅ Dialog Component Test > Should close on outer click
  ✅ useDialog Test > Should change visible state
  ✅ useDialog Test > Should hide change to visible false

✅ src/layout/navigation/Navigation.test.tsx

src/layout/navigation/Navigation.test.tsx
  ✅ Navigation Tests > Should render navigation link to dashboard
  ✅ Navigation Tests > Should render navigation link to settings

✅ src/providers/DataSourceProvider.test.tsx

src/providers/DataSourceProvider.test.tsx
  ✅ Bet Provider Test > Should render bets from local storage
  ✅ Bet Provider Test > Should remove bet from local storage provider
  ✅ Bet Provider Test > Should not render bets from local storage when firebase datasource
  ✅ DataSource Provider Tests > Should use LocalStorageProvider as default
  ✅ DataSource Provider Tests > Should change datasource
  ✅ DataSource Provider Tests > Should load FirebaseStorageProvider when defined

✅ src/providers/hooks/LocalStorageProvider.test.ts

src/providers/hooks/LocalStorageProvider.test.ts
  ✅ useLocalStorageProvider Tests > Should load bets from localsotrage
  ✅ useLocalStorageProvider Tests > Should add bet
  ✅ useLocalStorageProvider Tests > Should update bet
  ✅ useLocalStorageProvider Tests > Should resolve bet
  ✅ useLocalStorageProvider Tests > Should archive bet
  ✅ useLocalStorageProvider Tests > Should resolve bet

✅ src/views/dashboard/components/BetItem/BetItem.test.tsx

src/views/dashboard/components/BetItem/BetItem.test.tsx
  ✅ Bet Item Tests > Bet Props Rendering > Render bet data > Should render title
  ✅ Bet Item Tests > Bet Props Rendering > Render bet data > Should render description
  ✅ Bet Item Tests > Bet Props Rendering > Render bet data > Should render resolve button
  ✅ Bet Item Tests > Bet Props Rendering > Render bet data > Should not render menu button
  ✅ Bet Item Tests > Bet Props Rendering > Render bet data > Should not be expanded
  ✅ Bet Item Tests > Bet Props Rendering > Render bet actions > Should render and click edit menu option
  ✅ Bet Item Tests > Bet Props Rendering > Render bet actions > Should render and click archive menu option
  ✅ Bet Item Tests > Bet Props Rendering > Render bet actions > Should render and click restore menu option
  ✅ Bet Item Tests > Bet Props Rendering > Render bet actions > Should render and click delete menu option
  ✅ Bet Item Tests > Bet Props Rendering > Render bet actions > Should not render resolve button when readonly mode
  ✅ Bet Item Tests > Bet actins > Should expand and show options
  ✅ Bet Item Tests > Bet actins > Should resolve action open dialog

✅ src/views/dashboard/components/BetPanel.test.tsx

src/views/dashboard/components/BetPanel.test.tsx
  ✅ Bet Panel Tests > Should render placeholder text
  ✅ Bet Panel Tests > Should render bets
  ✅ Bet Panel Tests > Should change filter to resolved
  ✅ Bet Panel Tests > Should change filter to archived
  ✅ Bet Panel Tests > Should filter visible bets
  ✅ Bet Panel Tests > Should show confirmation before delete

✅ src/views/dashboard/components/ManageBetDialog.test.tsx

src/views/dashboard/components/ManageBetDialog.test.tsx
  ✅ Manage Bet Dialog Tests > Renderer > Should not render dialog when visible=false
  ✅ Manage Bet Dialog Tests > Renderer > Should render default create dialog when visible=true
  ✅ Manage Bet Dialog Tests > Renderer > Should render edit dialog
  ✅ Manage Bet Dialog Tests > Should close dialog
  ✅ Manage Bet Dialog Tests > Creation > Should create bet
  ✅ Manage Bet Dialog Tests > Update > Should load initial data to from
  ✅ Manage Bet Dialog Tests > Update > Should update bet data

✅ src/views/dashboard/components/widgets/Widget.test.tsx

src/views/dashboard/components/widgets/Widget.test.tsx
  ✅ Monthly summary tests > Should render pending and resolved values
  ✅ Overall summary tests > Should render pending and resolved percentage values
  ✅ Create Bet Card Tests > Should show dialog when user click and create bet

✅ src/views/settings/type/FirebaseImportDialog.test.tsx

src/views/settings/type/FirebaseImportDialog.test.tsx
  ✅ Firebase Import Dialog Tests > Should get config from input
  ✅ Firebase Import Dialog Tests > Should throw error if missing prop
  ✅ Firebase Import Dialog Tests > Should throw error when invalid config

✅ src/views/settings/type/Settings.test.tsx

src/views/settings/type/Settings.test.tsx
  ✅ Settings Factory Test > Should render local settings
  ✅ Settings Factory Test > Should render firebase settings
  ✅ Settings Firebase Tests > Load initial config > Should have apiKey value
  ✅ Settings Firebase Tests > Load initial config > Should have Authentication Domain value
  ✅ Settings Firebase Tests > Load initial config > Should have Project ID value
  ✅ Settings Firebase Tests > Load initial config > Should have Storage Bucket value
  ✅ Settings Firebase Tests > Load initial config > Should have Messaging Sender ID value
  ✅ Settings Firebase Tests > Load initial config > Should have Application ID value
  ✅ Settings Firebase Tests > Should save settings