blob: 0b80e89ee8a463df2641824083eff0d549bbaa65 [file] [log] [blame]
Bri Prebilic Cole068814d2015-05-14 16:06:38 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
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 Scandolo812aa5a2016-04-19 18:12:45 -070021// FIXME ReferenceError: userPrefs is not defined
22
23xdescribe('factory: fw/layer/veil.js', function () {
Bri Prebilic Cole068814d2015-05-14 16:06:38 -070024 var $log, $route, vs, fs, ks, gs;
25
Matteo Scandolo812aa5a2016-04-19 18:12:45 -070026 beforeEach(module('onosLayer', 'onosNav', 'onosSvg', 'ngRoute', 'onosRemote'));
Bri Prebilic Cole068814d2015-05-14 16:06:38 -070027
28 beforeEach(inject(function (_$log_, _$route_, VeilService, FnService,
29 KeyService, GlyphService) {
30 $log = _$log_;
31 $route = _$route_;
32 vs = VeilService;
33 fs = FnService;
34 ks = KeyService;
35 gs = GlyphService;
36 }));
37
38 it('should define VeilService', function () {
39 expect(vs).toBeDefined();
40 });
41
42 it('should define api functions', function () {
43 expect(fs.areFunctions(vs, [
44 'init', 'show', 'hide', 'lostServer'
45 ])).toBeTruthy();
46 });
47});