We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e4feea commit 17ad29cCopy full SHA for 17ad29c
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