/** * This file is part of Anis Client. * * @copyright Laboratoire d'Astrophysique de Marseille / CNRS * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { ComponentFixture, TestBed } from "@angular/core/testing" import { Attribute, ConeSearchConfig } from "src/app/metamodel/models"; import { ConeSearchImageComponent } from "./cone-search-image.component"; describe('[instance][search][components][result] ConeSearchImageComponent', () => { let component: ConeSearchImageComponent; let fixture: ComponentFixture<ConeSearchImageComponent>; let attribute: Attribute; let coneSearchConfig: ConeSearchConfig; beforeEach(() => { TestBed.configureTestingModule({ declarations: [ ConeSearchImageComponent ] }) fixture = TestBed.createComponent(ConeSearchImageComponent); component = fixture.componentInstance; }); it('should create component', () => { expect(component).toBeTruthy(); }); /* it('getData should return a array with the objet id = 1, x = ra_label, y = dec_label', () => { component.coneSearchConfig = { ...coneSearchConfig, column_ra: 5, column_dec: 3 }; component.attributeList = [ { ...attribute, primary_key: true, label: 'id_label' }, { ...attribute, id: 5, label: 'ra_label ' }, { ...attribute, id: 3, label: 'dec_label' } ] component.data = [ { id_label: 1, ra_label: 'ra_label', dec_label: 'test' }, ] expect(component.getData()).toEqual('') });*/ })