blob: 8d8d41c6851edd9aa2564dd2163c2e6c18ef3dad [file] [log] [blame]
Bri Prebilic Cole068814d2015-05-14 16:06:38 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
Bri Prebilic Cole068814d2015-05-14 16:06:38 -07003 *
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 */
16
17/*
18 ONOS GUI -- Layer -- Veil Service - Unit Tests
19 */
20
Matteo Scandolo231c7542016-05-20 11:13:11 -070021describe('factory: fw/layer/veil.js', function () {
Bri Prebilic Cole068814d2015-05-14 16:06:38 -070022 var $log, $route, vs, fs, ks, gs;
23
Matteo Scandolo812aa5a2016-04-19 18:12:45 -070024 beforeEach(module('onosLayer', 'onosNav', 'onosSvg', 'ngRoute', 'onosRemote'));
Bri Prebilic Cole068814d2015-05-14 16:06:38 -070025
26 beforeEach(inject(function (_$log_, _$route_, VeilService, FnService,
27 KeyService, GlyphService) {
28 $log = _$log_;
29 $route = _$route_;
30 vs = VeilService;
31 fs = FnService;
32 ks = KeyService;
33 gs = GlyphService;
34 }));
35
36 it('should define VeilService', function () {
37 expect(vs).toBeDefined();
38 });
39
40 it('should define api functions', function () {
41 expect(fs.areFunctions(vs, [
42 'init', 'show', 'hide', 'lostServer'
43 ])).toBeTruthy();
44 });
45});