get user config test updated
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
18f22fa350
commit
ec86e908e1
|
@ -2,9 +2,9 @@ const app = require('vn-loopback/server/server');
|
||||||
|
|
||||||
describe('userConfig getUserConfig()', () => {
|
describe('userConfig getUserConfig()', () => {
|
||||||
it(`should return the configuration data of a given user`, async() => {
|
it(`should return the configuration data of a given user`, async() => {
|
||||||
await app.models.UserConfig.getUserConfig({req: {accessToken: {userId: 9}}})
|
const result = await app.models.UserConfig.getUserConfig({req: {accessToken: {userId: 9}}});
|
||||||
.then(response => {
|
|
||||||
expect(response.warehouseFk).toEqual(1);
|
expect(result.warehouseFk).toEqual(1);
|
||||||
});
|
expect(result.companyFk).toEqual(442);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue