refactor(llc): remove dio deprecated methods

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2022-05-20 17:07:49 +05:30
committed by xsahil03x
parent e51b7b171e
commit 00bad6b7e8
3 changed files with 1 additions and 31 deletions
@@ -93,14 +93,10 @@ void main() {
when(() => tokenManager.isStatic).thenReturn(false);
when(() => client.lock()).thenReturn(() {});
final token = Token.development('test-user-id');
when(() => tokenManager.loadToken(refresh: true))
.thenAnswer((_) async => token);
when(() => client.unlock()).thenReturn(() {});
when(() => client.request(
path,
data: options.data,
@@ -127,12 +123,9 @@ void main() {
verify(() => tokenManager.isStatic).called(1);
verify(() => client.lock()).called(1);
verify(() => tokenManager.loadToken(refresh: true)).called(1);
verifyNoMoreInteractions(tokenManager);
verify(() => client.unlock()).called(1);
verify(() => client.request(
path,
data: options.data,
@@ -163,14 +156,10 @@ void main() {
when(() => tokenManager.isStatic).thenReturn(false);
when(() => client.lock()).thenReturn(() {});
final token = Token.development('test-user-id');
when(() => tokenManager.loadToken(refresh: true))
.thenAnswer((_) async => token);
when(() => client.unlock()).thenReturn(() {});
when(() => client.request(
path,
data: options.data,
@@ -193,12 +182,9 @@ void main() {
verify(() => tokenManager.isStatic).called(1);
verify(() => client.lock()).called(1);
verify(() => tokenManager.loadToken(refresh: true)).called(1);
verifyNoMoreInteractions(tokenManager);
verify(() => client.unlock()).called(1);
verify(() => client.request(
path,
data: options.data,