blob: 524a1605fd4cf3c4de5667aeabd75046a4bab846 [file] [log] [blame]
Simon Hunt7ac7be92015-01-06 10:47:56 -08001/*
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 -- SVG -- Glyph Service - Unit Tests
19
20 @author Simon Hunt
21 */
22describe('factory: fw/svg/glyph.js', function() {
Simon Hunt51fc40b2015-01-06 13:56:12 -080023 var $log, fs, gs;
Simon Hunt7ac7be92015-01-06 10:47:56 -080024
Simon Hunt51fc40b2015-01-06 13:56:12 -080025 beforeEach(module('onosUtil', 'onosSvg'));
Simon Hunt7ac7be92015-01-06 10:47:56 -080026
Simon Hunt51fc40b2015-01-06 13:56:12 -080027 beforeEach(inject(function (_$log_, FnService, GlyphService) {
28 $log = _$log_;
29 fs = FnService;
Simon Hunt7ac7be92015-01-06 10:47:56 -080030 gs = GlyphService;
31 }));
32
33 it('should define GlyphService', function () {
34 expect(gs).toBeDefined();
35 });
36
Simon Hunt51fc40b2015-01-06 13:56:12 -080037 it('should define four functions', function () {
38 expect(fs.areFunctions(gs, [
39 'init', 'register', 'ids', 'loadDefs'
40 ])).toBeTruthy();
41 });
42
Simon Hunt7ac7be92015-01-06 10:47:56 -080043 // TODO: unit tests for glyph functions
44});