update push provider in client test

This commit is contained in:
Neevash Ramdial
2021-01-22 09:49:42 -04:00
parent 423bae2aa8
commit 677866a275
@@ -266,13 +266,17 @@ void main() {
when(mockDio.post<String>('/devices', data: {
'id': 'test-id',
'push_provider': 'test',
'push_provider': 'firebase',
})).thenAnswer((_) async => Response(data: '{}', statusCode: 200));
await client.addDevice('test-id', PushProvider.firebase);
verify(mockDio.post<String>('/devices',
data: {'id': 'test-id', 'push_provider': 'test'})).called(1);
verify(
mockDio.post<String>(
'/devices',
data: {'id': 'test-id', 'push_provider': 'firebase'},
),
).called(1);
});
test('getDevices', () async {