diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-21 23:43:28 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-21 23:43:28 +0200 |
commit | 0fa67552247b2d29a6ca438c2605b8db2bbdbab7 (patch) | |
tree | 8109135e2fc141a324e8f21c66243ee4277b3b7c /js/tests/unit/stubs | |
parent | d3a774b2bd79654360a3ef12618102abf85a2ce3 (diff) |
es6 all the things
Diffstat (limited to 'js/tests/unit/stubs')
-rw-r--r-- | js/tests/unit/stubs/App.js (renamed from js/tests/unit/stubs/app.js) | 7 | ||||
-rw-r--r-- | js/tests/unit/stubs/OC.js (renamed from js/tests/unit/stubs/oc.js) | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/js/tests/unit/stubs/app.js b/js/tests/unit/stubs/App.js index 3cb1b1d3f..dc512f5e1 100644 --- a/js/tests/unit/stubs/app.js +++ b/js/tests/unit/stubs/App.js @@ -7,4 +7,9 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2012, 2014 */ -var app = angular.module('News', ['ngRoute', 'ngSanitize', 'ngAnimate', 'ngMock']);
\ No newline at end of file +window.app = angular.module('News', [ + 'ngRoute', + 'ngSanitize', + 'ngAnimate', + 'ngMock' +]);
\ No newline at end of file diff --git a/js/tests/unit/stubs/oc.js b/js/tests/unit/stubs/OC.js index 07ac96491..82622aab5 100644 --- a/js/tests/unit/stubs/oc.js +++ b/js/tests/unit/stubs/OC.js @@ -7,8 +7,8 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2012, 2014 */ -var OC = { - generateUrl: function () { +window.OC = { + generateUrl: () => { 'use strict'; return ''; |