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
This commit is contained in:
Shaoquan Chen 2015-07-30 17:14:42 -07:00
parent d06c3582d0
commit 75e1f4533d
1 changed files with 25 additions and 0 deletions

View File

@ -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();
});
});
})();