A module example is available for testing.
define([
'components/user/list/usersList.require',
'components/user/manage/userManage.require'
], function (usersListRequire, userManageRequire) {
"use strict";
var userPath = 'components/user/';
var userRequire = {
'UserModule': userPath + 'user.module',
'UserRoute': userPath + 'user.routes'
};
return Object.assign(
userRequire,
usersListRequire,
userManageRequire
);
});
An error occurs when running tests in Karma:
TypeError: undefined is not a function (evaluating 'Object.assign(
Attempts to resolve using the default JS Object: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
Seeking guidance on how to declare without errors in AMD format. Which path should be utilized?