@@ -18,6 +18,7 @@ void main() {
18
18
historyRetentionPeriod: HistoryRetentionPeriod .oneWeek,
19
19
workspaceFolderPath: null ,
20
20
isSSLDisabled: true ,
21
+ isDashBotEnabled: true ,
21
22
);
22
23
23
24
test ('Testing toJson()' , () {
@@ -36,6 +37,7 @@ void main() {
36
37
"historyRetentionPeriod" : "oneWeek" ,
37
38
"workspaceFolderPath" : null ,
38
39
"isSSLDisabled" : true ,
40
+ "isDashBotEnabled" : true ,
39
41
};
40
42
expect (sm.toJson (), expectedResult);
41
43
});
@@ -56,6 +58,7 @@ void main() {
56
58
"historyRetentionPeriod" : "oneWeek" ,
57
59
"workspaceFolderPath" : null ,
58
60
"isSSLDisabled" : true ,
61
+ "isDashBotEnabled" : true ,
59
62
};
60
63
expect (SettingsModel .fromJson (input), sm);
61
64
});
@@ -73,12 +76,14 @@ void main() {
73
76
activeEnvironmentId: null ,
74
77
historyRetentionPeriod: HistoryRetentionPeriod .oneWeek,
75
78
isSSLDisabled: false ,
79
+ isDashBotEnabled: false ,
76
80
);
77
81
expect (
78
82
sm.copyWith (
79
83
isDark: true ,
80
84
saveResponses: false ,
81
85
isSSLDisabled: false ,
86
+ isDashBotEnabled: false ,
82
87
),
83
88
expectedResult);
84
89
});
@@ -98,7 +103,8 @@ void main() {
98
103
"activeEnvironmentId": null,
99
104
"historyRetentionPeriod": "oneWeek",
100
105
"workspaceFolderPath": null,
101
- "isSSLDisabled": true
106
+ "isSSLDisabled": true,
107
+ "isDashBotEnabled": true
102
108
}''' ;
103
109
expect (sm.toString (), expectedResult);
104
110
});
0 commit comments