blob: d6f64469e5987ad8236ebf71ab3b8d0d4547e562 [file] [log] [blame]
Sean Condon0c577f62018-11-18 22:40:05 +00001/*
2 * Copyright 2018-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16import { async, ComponentFixture, TestBed } from '@angular/core/testing';
17
18import { SubRegionNodeSvgComponent } from './subregionnodesvg.component';
19import {SubRegion} from '../../models';
20
21describe('SubRegionNodeSvgComponent', () => {
22 let component: SubRegionNodeSvgComponent;
23 let fixture: ComponentFixture<SubRegionNodeSvgComponent>;
24
25 beforeEach(async(() => {
26 TestBed.configureTestingModule({
27 declarations: [ SubRegionNodeSvgComponent ]
28 })
29 .compileComponents();
30 }));
31
32 beforeEach(() => {
33 fixture = TestBed.createComponent(SubRegionNodeSvgComponent);
34 component = fixture.debugElement.componentInstance;
35 fixture.detectChanges();
36 });
37
38 it('should create', () => {
39 expect(component).toBeTruthy();
40 });
41
42 it('should create with an input', () => {
43 component.subRegion = new SubRegion('testId');
44 expect(component).toBeTruthy();
45 });
46});