1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2025-04-09 10:15:44 +02:00

fix js tests to run without appframework

This commit is contained in:
Bernhard Posselt 2014-04-12 01:56:59 +02:00
parent 3f6715ac1d
commit 10109c9ebe
2 changed files with 37 additions and 2 deletions
js
config
tests/stubs

View File

@ -37,8 +37,7 @@ module.exports = function(config) {
'vendor/angular-mocks/angular-mocks.js',
'vendor/angular-ui/build/angular-ui.js',
'vendor/momentjs/moment.js',
'../../appframework/js/tests/stubs/owncloud.js',
'../../appframework/js/public/app.js',
'tests/stubs/owncloud.js',
'tests/stubs/modules.js',
'build/app/directives/*.js',
'build/app/services/**/*.js',

View File

@ -0,0 +1,36 @@
/**
* ownCloud - News
*
* @author Bernhard Posselt
* @copyright 2012 Bernhard Posselt dev@bernhard-posselt.com
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* License as published by the Free Software Foundation; either
* version 3 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
/**
* Contains mock objects for need OC objects
*/
var oc_requesttoken = "token";
var OC = {
Router:function(){
return null;
},
Notification:function(){
return null;
}
};