import * as React from 'react'; import { shallow } from 'enzyme'; import ExpressionWrapper, { ExpressionWrapperProps } from './ExpressionWrapper'; const expressionTestData: ExpressionWrapperProps = require('./expressionTestData.json'); describe('Expression Wrapper', () => { let wrapper: any; let instance: ExpressionWrapper; beforeEach(() => { wrapper = shallow( ); instance = wrapper.instance() as ExpressionWrapper; }); it.skip('studies are sorted properly depending on sortBy setting', () => { // TODO this is failing. we need new data to debug // instance.sortBy = "alphabetic"; // assert.equal(instance.sortedData[2][0].studyId, 'chol_tcga', 'sorting is alphabetical'); // // instance.sortBy = "median"; // assert.equal(instance.sortedData[2][0].studyId, 'laml_tcga', 'sort according to median values'); }); });