From 792e458d40936fdf6de462c2bb15764cec9623cb Mon Sep 17 00:00:00 2001 From: Ashita Prasad Date: Sat, 17 May 2025 17:18:49 +0530 Subject: [PATCH] Update settings_model_test.dart --- test/models/settings_model_test.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/models/settings_model_test.dart b/test/models/settings_model_test.dart index 1928fd0e..3a7827d5 100644 --- a/test/models/settings_model_test.dart +++ b/test/models/settings_model_test.dart @@ -18,6 +18,7 @@ void main() { historyRetentionPeriod: HistoryRetentionPeriod.oneWeek, workspaceFolderPath: null, isSSLDisabled: true, + isDashBotEnabled: true, ); test('Testing toJson()', () { @@ -36,6 +37,7 @@ void main() { "historyRetentionPeriod": "oneWeek", "workspaceFolderPath": null, "isSSLDisabled": true, + "isDashBotEnabled": true, }; expect(sm.toJson(), expectedResult); }); @@ -56,6 +58,7 @@ void main() { "historyRetentionPeriod": "oneWeek", "workspaceFolderPath": null, "isSSLDisabled": true, + "isDashBotEnabled": true, }; expect(SettingsModel.fromJson(input), sm); }); @@ -73,12 +76,14 @@ void main() { activeEnvironmentId: null, historyRetentionPeriod: HistoryRetentionPeriod.oneWeek, isSSLDisabled: false, + isDashBotEnabled: false, ); expect( sm.copyWith( isDark: true, saveResponses: false, isSSLDisabled: false, + isDashBotEnabled: false, ), expectedResult); }); @@ -98,7 +103,8 @@ void main() { "activeEnvironmentId": null, "historyRetentionPeriod": "oneWeek", "workspaceFolderPath": null, - "isSSLDisabled": true + "isSSLDisabled": true, + "isDashBotEnabled": true }'''; expect(sm.toString(), expectedResult); });