test dependency injection

This commit is contained in:
Stewart Allen 2021-12-29 10:37:17 -05:00
commit a1dc0dea06
10 changed files with 98 additions and 46 deletions

View file

@ -10,6 +10,7 @@
module.exports = terms;
}
// allow license to be required() by app without gapp
if (typeof(self) !== 'undefined' && self.gapp) {
let app = self.gapp;
app.license = terms.LICENSE;

View file

@ -3,7 +3,10 @@
"use strict";
(function() {
gapp.register('moto.space');
gapp.register('moto.space', [
'add.array', // dep: add.array
'moto.orbit' // dep: moto.orbit
]);
let MOTO = self.moto = self.moto || {},
WIN = window,