Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed and Added two new test. #8

Merged
merged 2 commits into from
Nov 10, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add test for Session and Team List apis.
Signed-off-by: Sahil Kumar <[email protected]>
  • Loading branch information
xsahil03x committed Oct 20, 2019
commit 67de06b9c0b92fffc3a0d2ff579b8978a5e9e04a
18 changes: 18 additions & 0 deletions test/api_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,23 @@ void main() {
expect(res.networkServiceResponse.success, isTrue);
},
);
test(
"Should Fetch Session List",
() async {
IClient _client = MockClient();
final res = await _client.getAsync(HomeProvider.kConstGetSessionsUrl);
print(res.mappedResult);
expect(res.networkServiceResponse.success, isTrue);
},
);
test(
"Should Fetch Team List",
() async {
IClient _client = MockClient();
final res = await _client.getAsync(HomeProvider.kConstGetTeamsUrl);
print(res.mappedResult);
expect(res.networkServiceResponse.success, isTrue);
},
);
});
}