Steven Burrows | 202034f | 2017-08-11 12:08:01 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017-present Open Networking Foundation |
| 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 -- Topo2 Controller - Unit Tests |
| 19 | */ |
| 20 | describe('Controller: OvTopo2Ctrl', function () { |
| 21 | |
| 22 | var $scope, $controller, createController; |
| 23 | |
| 24 | beforeEach(module('ovTopo2', 'onosRemote', 'onosLayer', 'onosSvg', |
| 25 | 'onosNav', 'ngRoute', 'onosWidget', 'onosMast')); |
| 26 | |
| 27 | beforeEach(inject(function ($rootScope, _$controller_) { |
| 28 | $scope = $rootScope.$new(); |
| 29 | $controller = _$controller_; |
| 30 | |
| 31 | d3Topo = d3.select('body').append('div').attr('id', 'ov-topo2'); |
| 32 | topoSvg = d3Topo.append('svg').attr('id', 'topo2'); |
| 33 | topoSvg.append('g').attr('id', 'topo2-noDevsLayer') |
| 34 | |
| 35 | createController = function () { |
| 36 | return $controller('OvTopo2Ctrl', { |
| 37 | '$scope': $scope, |
| 38 | }); |
| 39 | }; |
| 40 | })); |
| 41 | |
| 42 | it('should create controller', function () { |
| 43 | var controller = createController(); |
| 44 | }); |
| 45 | |
| 46 | }); |