Update test dependencies

This commit is contained in:
Sigurd Meldgaard 2018-07-04 22:53:07 +02:00
parent b8e5c5c2c5
commit 86a6ae2dad
2 changed files with 4 additions and 4 deletions

View File

@ -15,5 +15,5 @@ dependencies:
http2: ^0.1.7
dev_dependencies:
mockito: ^2.0.2
test: ^0.12.0
mockito: ^3.0.0-beta
test: ^1.2.0

View File

@ -123,8 +123,8 @@ class ClientHarness {
stream = new MockStream();
fromClient = new StreamController();
toClient = new StreamController();
when(transport.makeRequest(typed(any))).thenReturn(stream);
when(transport.onActiveStateChanged = typed(captureAny)).thenReturn(null);
when(transport.makeRequest(any)).thenReturn(stream);
when(transport.onActiveStateChanged = captureAny).thenReturn(null);
when(stream.outgoingMessages).thenReturn(fromClient.sink);
when(stream.incomingMessages).thenAnswer((_) => toClient.stream);
client = new TestClient(channel);