blob: f8f41da0624efec520ccbce5359cbfee576c125c [file] [log] [blame]
Sean Condon83fc39f2018-04-19 18:56:13 +01001/*
2 * Copyright 2015-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 { TooltipDirective } from '../../../../app/fw/widget/tooltip.directive';
17import { LogService } from '../../../../app/log.service';
18import { FnService } from '../../../../app/fw/util/fn.service';
19import { ActivatedRoute, Router} from '@angular/router';
20
21class MockFunctionService extends FnService {
22 // Override things as necessary
23}
24
25/**
26 * ONOS GUI -- Widget -- Tooltip Directive - Unit Tests
27 */
28describe('TooltipDirective', () => {
29 let fs: MockFunctionService;
30 let log: LogService;
31 let ar: ActivatedRoute;
32 let directive: TooltipDirective;
33
34 beforeEach(() => {
35 log = new LogService();
36 ar = new ActivatedRoute();
37 fs = new MockFunctionService(ar, log);
38 directive = new TooltipDirective(fs, log);
39 });
40
41 afterEach(() => {
42 fs = null;
43 log = null;
44 ar = null;
45 directive = null;
46 });
47
48 it('should create an instance', () => {
49 expect(directive).toBeTruthy();
50 });
51});