mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
Merge branch 'main' into pr/867
This commit is contained in:
@@ -57,6 +57,7 @@ final Map<String, dynamic> historyRequestModelJson1 = {
|
||||
"historyId": "historyId1",
|
||||
"metaData": historyMetaModelJson1,
|
||||
"httpRequestModel": httpRequestModelGet4Json,
|
||||
'aiRequestModel': null,
|
||||
"httpResponseModel": responseModelJson,
|
||||
'preRequestScript': null,
|
||||
'postRequestScript': null,
|
||||
|
||||
@@ -218,7 +218,8 @@ Map<String, dynamic> requestModelJson = {
|
||||
'message': null,
|
||||
'httpResponseModel': responseModelJson,
|
||||
'preRequestScript': null,
|
||||
'postRequestScript': null
|
||||
'postRequestScript': null,
|
||||
'aiRequestModel': null
|
||||
};
|
||||
|
||||
/// Basic GET request model for apidash.dev
|
||||
|
||||
@@ -19,6 +19,7 @@ void main() {
|
||||
workspaceFolderPath: null,
|
||||
isSSLDisabled: true,
|
||||
isDashBotEnabled: true,
|
||||
defaultAIModel: {"model": "llama"},
|
||||
);
|
||||
|
||||
test('Testing toJson()', () {
|
||||
@@ -38,6 +39,7 @@ void main() {
|
||||
"workspaceFolderPath": null,
|
||||
"isSSLDisabled": true,
|
||||
"isDashBotEnabled": true,
|
||||
"defaultAIModel": {"model": "llama"}
|
||||
};
|
||||
expect(sm.toJson(), expectedResult);
|
||||
});
|
||||
@@ -59,6 +61,7 @@ void main() {
|
||||
"workspaceFolderPath": null,
|
||||
"isSSLDisabled": true,
|
||||
"isDashBotEnabled": true,
|
||||
"defaultAIModel": {"model": "llama"}
|
||||
};
|
||||
expect(SettingsModel.fromJson(input), sm);
|
||||
});
|
||||
@@ -77,6 +80,7 @@ void main() {
|
||||
historyRetentionPeriod: HistoryRetentionPeriod.oneWeek,
|
||||
isSSLDisabled: false,
|
||||
isDashBotEnabled: false,
|
||||
defaultAIModel: {"model": "llama"},
|
||||
);
|
||||
expect(
|
||||
sm.copyWith(
|
||||
@@ -104,7 +108,10 @@ void main() {
|
||||
"historyRetentionPeriod": "oneWeek",
|
||||
"workspaceFolderPath": null,
|
||||
"isSSLDisabled": true,
|
||||
"isDashBotEnabled": true
|
||||
"isDashBotEnabled": true,
|
||||
"defaultAIModel": {
|
||||
"model": "llama"
|
||||
}
|
||||
}''';
|
||||
expect(sm.toString(), expectedResult);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user