Fix Configuration test and remove UserData test
This commit is contained in:
parent
60ff7f412a
commit
f5a55c0323
2 changed files with 10 additions and 6 deletions
|
@ -45,7 +45,7 @@ public class SVGLDController : ControllerBase
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost(Name = nameof(SVGLDLibs.Models.Configuration))]
|
[HttpPost(Name = nameof(SVGLDLibs.Models.Configuration))]
|
||||||
public bool ConfigurationResponseModel(Configuration model)
|
public bool Configuration(Configuration model)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -190,8 +190,7 @@ describe.concurrent('Models test suite', () => {
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
CustomSVG: 'string',
|
CustomSVG: 'string',
|
||||||
Style: {},
|
Style: {}
|
||||||
UserData: []
|
|
||||||
};
|
};
|
||||||
|
|
||||||
it('AvailableContainerModel', async() => {
|
it('AvailableContainerModel', async() => {
|
||||||
|
@ -234,7 +233,7 @@ describe.concurrent('Models test suite', () => {
|
||||||
wrapper: 'string'
|
wrapper: 'string'
|
||||||
};
|
};
|
||||||
|
|
||||||
it('ConfigurationResponseModel', async() => {
|
it('Configuration', async() => {
|
||||||
const model: IConfiguration = {
|
const model: IConfiguration = {
|
||||||
AvailableContainers: [
|
AvailableContainers: [
|
||||||
availableContainerModel
|
availableContainerModel
|
||||||
|
@ -246,10 +245,15 @@ describe.concurrent('Models test suite', () => {
|
||||||
category
|
category
|
||||||
],
|
],
|
||||||
MainContainer: availableContainerModel,
|
MainContainer: availableContainerModel,
|
||||||
Patterns: [pattern]
|
Patterns: [pattern],
|
||||||
|
APIConfiguration: {
|
||||||
|
apiFetchUrl: '',
|
||||||
|
apiGetFeedbackUrl: '',
|
||||||
|
apiSetContainerListUrl: ''
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const res = await Post2API('ConfigurationResponseModel', JSON.stringify(model));
|
const res = await Post2API('Configuration', JSON.stringify(model));
|
||||||
expect(res).toBe(true);
|
expect(res).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue