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
|
import { Component, Input, Output, ContentChildren, SimpleChanges, QueryList, EventEmitter, OnChanges, AfterContentInit } from '@angular/core';
import { FormsModule } from "@angular/forms";
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { PopupMenuItemComponent } from './popup-menu-item.component';
import { PopupMenuListComponent } from './popup-menu-list.component';
describe('Popup Menu', () => {
let component: PopupMenuListComponent;
let fixture: ComponentFixture<PopupMenuListComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ PopupMenuListComponent ],
}).compileComponents();
fixture = TestBed.createComponent(PopupMenuListComponent);
component = fixture.componentInstance;
}));
it('Popup menu component should be created', () => {
expect(component).toBeTruthy();
});
it('Set Position to Popup Menu', () => {
expect(component.position).toEqual({ x: 0, y: 0 })
});
})
|