@sync-in/server
Version:
The secure, open-source platform for file storage, sharing, collaboration, and sync
34 lines (33 loc) • 1.05 kB
JavaScript
/*
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
* This file is part of Sync-in | The open source file sync and share solution
* See the LICENSE file for licensing details
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "generateUserTest", {
enumerable: true,
get: function() {
return generateUserTest;
}
});
const _faker = require("@faker-js/faker");
const _shared = require("../../../common/shared");
const _user = require("../constants/user");
function generateUserTest(withId = true) {
return {
...withId && {
id: -_faker.faker.number.int()
},
login: _faker.faker.internet.username(),
email: _faker.faker.internet.email(),
firstName: _shared.SERVER_NAME,
lastName: 'Testing',
role: _user.USER_ROLE.USER,
isActive: true,
password: 'password',
applications: Object.values(_user.USER_PERMISSION)
};
}
//# sourceMappingURL=test.js.map