2018-12-21 11:50:28 +00:00
|
|
|
const app = require(`${serviceRoot}/server/server`);
|
2018-10-08 09:03:28 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|