Skip to content

Commit 792e458

Browse files
committed
Update settings_model_test.dart
1 parent 1ad2dd6 commit 792e458

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/models/settings_model_test.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ void main() {
1818
historyRetentionPeriod: HistoryRetentionPeriod.oneWeek,
1919
workspaceFolderPath: null,
2020
isSSLDisabled: true,
21+
isDashBotEnabled: true,
2122
);
2223

2324
test('Testing toJson()', () {
@@ -36,6 +37,7 @@ void main() {
3637
"historyRetentionPeriod": "oneWeek",
3738
"workspaceFolderPath": null,
3839
"isSSLDisabled": true,
40+
"isDashBotEnabled": true,
3941
};
4042
expect(sm.toJson(), expectedResult);
4143
});
@@ -56,6 +58,7 @@ void main() {
5658
"historyRetentionPeriod": "oneWeek",
5759
"workspaceFolderPath": null,
5860
"isSSLDisabled": true,
61+
"isDashBotEnabled": true,
5962
};
6063
expect(SettingsModel.fromJson(input), sm);
6164
});
@@ -73,12 +76,14 @@ void main() {
7376
activeEnvironmentId: null,
7477
historyRetentionPeriod: HistoryRetentionPeriod.oneWeek,
7578
isSSLDisabled: false,
79+
isDashBotEnabled: false,
7680
);
7781
expect(
7882
sm.copyWith(
7983
isDark: true,
8084
saveResponses: false,
8185
isSSLDisabled: false,
86+
isDashBotEnabled: false,
8287
),
8388
expectedResult);
8489
});
@@ -98,7 +103,8 @@ void main() {
98103
"activeEnvironmentId": null,
99104
"historyRetentionPeriod": "oneWeek",
100105
"workspaceFolderPath": null,
101-
"isSSLDisabled": true
106+
"isSSLDisabled": true,
107+
"isDashBotEnabled": true
102108
}''';
103109
expect(sm.toString(), expectedResult);
104110
});

0 commit comments

Comments
 (0)