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 942aa87 commit 5634c57Copy full SHA for 5634c57
test/model/store_test.dart
@@ -296,6 +296,16 @@ void main() {
296
check(connection).isOpen.isFalse();
297
}));
298
299
+ test('GlobalStore.perAccount throws if missing queueId', () async {
300
+ final globalStore = UpdateMachineTestGlobalStore(accounts: [eg.selfAccount]);
301
+ globalStore.prepareRegisterQueueResponse = (connection) {
302
+ connection.prepare(json:
303
+ deepToJson(eg.initialSnapshot()) as Map<String, dynamic>
304
+ ..['queue_id'] = null);
305
+ };
306
+ await check(globalStore.perAccount(eg.selfAccount.id)).throws();
307
+ });
308
+
309
// TODO test insertAccount
310
311
group('GlobalStore.updateAccount', () {
0 commit comments