We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86be5c4 commit 32a6e80Copy full SHA for 32a6e80
test/model/database_test.dart
@@ -52,6 +52,17 @@ void main() {
52
.themeSetting.equals(ThemeSetting.dark);
53
});
54
55
+ test('GlobalSettings updates work', () async {
56
+ check(await database.ensureGlobalSettings())
57
+ .themeSetting.isNull();
58
+
59
+ // As in doUpdateGlobalSettings.
60
+ await database.update(database.globalSettings)
61
+ .write(GlobalSettingsCompanion(themeSetting: Value(ThemeSetting.dark)));
62
63
+ .themeSetting.equals(ThemeSetting.dark);
64
+ });
65
66
test('create account', () async {
67
final accountData = AccountsCompanion.insert(
68
realmUrl: Uri.parse('https://chat.example/'),
0 commit comments