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))]
|
||||
public bool ConfigurationResponseModel(Configuration model)
|
||||
public bool Configuration(Configuration model)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -190,8 +190,7 @@ describe.concurrent('Models test suite', () => {
|
|||
}
|
||||
],
|
||||
CustomSVG: 'string',
|
||||
Style: {},
|
||||
UserData: []
|
||||
Style: {}
|
||||
};
|
||||
|
||||
it('AvailableContainerModel', async() => {
|
||||
|
@ -234,7 +233,7 @@ describe.concurrent('Models test suite', () => {
|
|||
wrapper: 'string'
|
||||
};
|
||||
|
||||
it('ConfigurationResponseModel', async() => {
|
||||
it('Configuration', async() => {
|
||||
const model: IConfiguration = {
|
||||
AvailableContainers: [
|
||||
availableContainerModel
|
||||
|
@ -246,10 +245,15 @@ describe.concurrent('Models test suite', () => {
|
|||
category
|
||||
],
|
||||
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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue