refactor analytics module
This commit is contained in:
@@ -25,9 +25,19 @@ describe('GetDashboardDataPresenter', () => {
|
||||
totalRaces: 20,
|
||||
totalLeagues: 5,
|
||||
});
|
||||
expect(presenter.responseModel).toEqual({
|
||||
totalUsers: 100,
|
||||
activeUsers: 50,
|
||||
totalRaces: 20,
|
||||
totalLeagues: 5,
|
||||
});
|
||||
});
|
||||
|
||||
it('getResponseModel throws if not presented', () => {
|
||||
expect(() => presenter.getResponseModel()).toThrow('Presenter not presented');
|
||||
});
|
||||
|
||||
it('responseModel throws if not presented', () => {
|
||||
expect(() => presenter.responseModel).toThrow('Presenter not presented');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user