Bri Prebilic Cole | 068814d | 2015-05-14 16:06:38 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Laboratory |
Bri Prebilic Cole | 068814d | 2015-05-14 16:06:38 -0700 | [diff] [blame] | 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 | |
Matteo Scandolo | 231c754 | 2016-05-20 11:13:11 -0700 | [diff] [blame^] | 21 | describe('factory: fw/layer/veil.js', function () { |
Bri Prebilic Cole | 068814d | 2015-05-14 16:06:38 -0700 | [diff] [blame] | 22 | var $log, $route, vs, fs, ks, gs; |
| 23 | |
Matteo Scandolo | 812aa5a | 2016-04-19 18:12:45 -0700 | [diff] [blame] | 24 | beforeEach(module('onosLayer', 'onosNav', 'onosSvg', 'ngRoute', 'onosRemote')); |
Bri Prebilic Cole | 068814d | 2015-05-14 16:06:38 -0700 | [diff] [blame] | 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 | }); |