11 lines
386 B
JavaScript
11 lines
386 B
JavaScript
const app = require(`${servicesDir}/ticket/server/server`);
|
|
|
|
describe('userConfig getUserConfig()', () => {
|
|
it(`should return the configuration data of a given user`, async() => {
|
|
await app.models.UserConfig.getUserConfig({req: {accessToken: {userId: 9}}})
|
|
.then(response => {
|
|
expect(response.warehouseFk).toEqual(1);
|
|
});
|
|
});
|
|
});
|