website cleanup
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { AvailableLeaguesViewModel, AvailableLeagueViewModel } from './AvailableLeaguesViewModel';
|
||||
|
||||
describe('AvailableLeaguesViewModel', () => {
|
||||
@@ -22,9 +22,9 @@ describe('AvailableLeaguesViewModel', () => {
|
||||
|
||||
expect(vm.leagues).toHaveLength(1);
|
||||
expect(vm.leagues[0]).toBeInstanceOf(AvailableLeagueViewModel);
|
||||
expect(vm.leagues[0].id).toBe(baseLeague.id);
|
||||
expect(vm.leagues[0].name).toBe(baseLeague.name);
|
||||
expect(vm.leagues[0].avgViewsPerRace).toBe(baseLeague.avgViewsPerRace);
|
||||
expect(vm.leagues[0]?.id).toBe(baseLeague.id);
|
||||
expect(vm.leagues[0]?.name).toBe(baseLeague.name);
|
||||
expect(vm.leagues[0]?.avgViewsPerRace).toBe(baseLeague.avgViewsPerRace);
|
||||
});
|
||||
|
||||
it('exposes formatted average views and CPM for main sponsor slot', () => {
|
||||
|
||||
Reference in New Issue
Block a user