Mentions légales du service

Skip to content
Snippets Groups Projects

Add multiple dataset versions

Files
19
@@ -63,10 +63,12 @@ describe('AboutComponent', () => {
@@ -63,10 +63,12 @@ describe('AboutComponent', () => {
(<jasmine.Spy>datasetService.getDatasetStats).calls.reset();
(<jasmine.Spy>datasetService.getDatasetStats).calls.reset();
});
});
it('should get the stats from the datasetService', () => {
it('should get the stats from the datasetService', () => {
component.selectDataset(datasets[0]);
component.selectDataset(datasets[0]);
expect(datasetService.getDatasetStats).toHaveBeenCalledWith(datasets[0].key);
expect(datasetService.getDatasetStats).toHaveBeenCalledWith(
});
datasets[0].key, datasets[0].current
 
);
 
});
it('should compute the total from the stats', () => {
it('should compute the total from the stats', () => {
const stats = { articles: 12, authors: 15, teams: 2 };
const stats = { articles: 12, authors: 15, teams: 2 };
Loading