added getUserConfig test

This commit is contained in:
Gerard 2018-10-08 11:03:28 +02:00
parent 034cf526a6
commit 16902fab8f
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
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);
});
});
});