blob: a8241eac4b9d31661b06d32c5c15b7afceb9e62d [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 { TableResizeDirective } from '../../../../app/fw/widget/tableresize.directive';
17import { LogService } from '../../../../app/log.service';
18import { FnService } from '../../../../app/fw/util/fn.service';
19import { MastService } from '../../../../app/fw/mast/mast.service';
20import { ActivatedRoute, Router} from '@angular/router';
21
22class MockFunctionService extends FnService {
23 // Override things as necessary
24}
25
26/**
27 * ONOS GUI -- Widget -- Table Resize Directive - Unit Tests
28 */
29describe('TableResizeDirective', () => {
30
31 let fs: MockFunctionService;
32 let log: LogService;
33 let ar: ActivatedRoute;
34 let ms: MastService;
35 let directive: TableResizeDirective;
36
37 beforeEach(() => {
38 log = new LogService();
39 ar = new ActivatedRoute();
40 fs = new MockFunctionService(ar, log);
41 ms = new MastService(fs, log);
42 directive = new TableResizeDirective(fs, log, ms);
43 });
44
45 afterEach(() => {
46 fs = null;
47 log = null;
48 ar = null;
49 ms = null;
50 directive = null;
51 });
52
53 it('should create an instance', () => {
54 expect(directive).toBeTruthy();
55 });
56});