aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular/popup-menu/popup-menu-item.component.spec.ts
blob: 845431733bfb15426de1f4fa778c0297fe463534 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
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 })
    });
})