refactor(llc): remove dio deprecated methods
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user