Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,31 +81,4 @@ module('Integration | institutions | dashboard | -components | chart-kpi', hooks
assert.dom('[data-test-expanded-total="0"]')
.hasText('100000');
});

/**
* I need to determine if this is going to be a feature or not
test('it renders the without data correctly', async function(this: EnginesIntlTestContext, assert) {
const data = Object({
total: 0,
title: 'This is the title',
icon: 'building',
});

this.set('data', data);


await render(hbs`
<Institutions::Dashboard::-Components::ChartKpiWrapper::ChartKpi
@data={{this.data}}
/>
`);

assert.dom('[data-test-kpi-title]')
.hasText('This is the title');
assert.dom('[data-test-kpi-data]')
.hasText('No data for institution found.');
assert.dom('[data-test-kpi-icon]')
.hasAttribute('data-icon', 'building');
});
*/
});
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ import InstitutionDepartmentModel from 'ember-osf-web/models/institution-departm
import InstitutionSummaryMetricModel from 'ember-osf-web/models/institution-summary-metric';
import SearchResultModel from 'ember-osf-web/models/search-result';

/*
import InstitutionSummaryMetricModel from 'ember-osf-web/models/institution-summary-metric';
*/

export interface ChartDataModel {
label: string;
total: number;
Expand Down
Loading