Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* 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('')
});*/
})