blob: 155ebaab58faea3054702a0857ba52e053e1c3b3 [file] [log] [blame]
Bri Prebilic Cole068814d2015-05-14 16:06:38 -07001/*
2 * Copyright 2015 Open Networking Laboratory
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 */
16
17/*
18 ONOS GUI -- Layer -- Veil Service - Unit Tests
19 */
20
21describe('factory: fw/layer/veil.js', function () {
22 var $log, $route, vs, fs, ks, gs;
23
24 beforeEach(module('onosLayer', 'onosNav', 'onosSvg', 'ngRoute'));
25
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});