Skip to content

Commit 8580703

Browse files
committed
Fix tests
1 parent 69ee110 commit 8580703

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/common/repos_service_test.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void main() {
1616
test('listCommits', () async {
1717
final repositories = create((request) async {
1818
expect(request.url.path, '/repos/${slug.fullName}/commits');
19-
expect(request.url.query, 'page=1');
19+
expect(request.url.query, isEmpty);
2020

2121
return Response(listCommits, StatusCodes.OK);
2222
});
@@ -29,7 +29,7 @@ void main() {
2929
expect(request.url.path, '/repos/${slug.fullName}/commits');
3030
expect(
3131
request.url.query,
32-
'author=octocat&committer=octodog&sha=abc&path=%2Fpath&since=2022-02-22T00%3A00%3A00.000&until=2023-02-22T00%3A00%3A00.000&page=1',
32+
'author=octocat&committer=octodog&sha=abc&path=%2Fpath&since=2022-02-22T00%3A00%3A00.000&until=2023-02-22T00%3A00%3A00.000',
3333
);
3434
return Response(listCommits, StatusCodes.OK);
3535
});

test/git_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ void main() {
172172
test('code search', () async {
173173
nock(fakeApiUrl)
174174
.get(
175-
'/search/code?q=search%20repo%3ASpinlockLabs%2Fgithub.dart%20in%3Afile&per_page=20&page=1')
175+
'/search/code?q=search%20repo%3ASpinlockLabs%2Fgithub.dart%20in%3Afile&per_page=20')
176176
.reply(200, nocked.searchResults);
177177

178178
final results = (await github.search

0 commit comments

Comments
 (0)