We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 143c247 commit 72cb129Copy full SHA for 72cb129
test/model/store_test.dart
@@ -212,6 +212,16 @@ void main() {
212
check(connection).isOpen.isFalse();
213
}));
214
215
+ test('GlobalStore.perAccount throws if missing queueId', () async {
216
+ final globalStore = UpdateMachineTestGlobalStore(accounts: [eg.selfAccount]);
217
+ globalStore.prepareRegisterQueueResponse = (connection) {
218
+ connection.prepare(json:
219
+ deepToJson(eg.initialSnapshot()) as Map<String, dynamic>
220
+ ..['queue_id'] = null);
221
+ };
222
+ await check(globalStore.perAccount(eg.selfAccount.id)).throws();
223
+ });
224
+
225
// TODO test insertAccount
226
227
group('GlobalStore.updateAccount', () {
0 commit comments