From 75e1f4533d503ea9bcff3a52d8c7b31863ad4b0e Mon Sep 17 00:00:00 2001 From: Shaoquan Chen Date: Thu, 30 Jul 2015 17:14:42 -0700 Subject: [PATCH] Adding app.module.spec.js This patch adds spec for app.module.js which has been missing since it cannot be auto-collected to Jasmine test runner. Added spec for the module's definition. The run block is all about configuring `horizon` object which is in old code and there is patch moving them out off app.module.js since they are not really belong to here, therefore specs for the code in the run block is not added. Change-Id: I835eb6488ee5809ce874dbb7f5d34d06d0b5573d Closes-Bug: #1480007 --- .../static/app/app.module.spec.js | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 openstack_dashboard/static/app/app.module.spec.js diff --git a/openstack_dashboard/static/app/app.module.spec.js b/openstack_dashboard/static/app/app.module.spec.js new file mode 100644 index 0000000000..100054a444 --- /dev/null +++ b/openstack_dashboard/static/app/app.module.spec.js @@ -0,0 +1,25 @@ +/* + * (c) Copyright 2015 Hewlett-Packard Development Company, L.P. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +(function () { + 'use strict'; + + describe('horizon.app', function () { + it('should be defined', function () { + expect(angular.module('horizon.app')).toBeDefined(); + }); + }); + +})();