Skip to content

Commit

Permalink
Merge pull request #2256 from nextcloud/test/nextcloud/weather-status…
Browse files Browse the repository at this point in the history
…-coordinates
  • Loading branch information
provokateurin authored Jul 12, 2024
2 parents 9e53371 + 8552b83 commit b8a8700
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/nextcloud/test/weather_status_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ void main() {
expect(response.statusCode, 200);
expect(response.body.ocs.data.mode, 2);
expect(response.body.ocs.data.address, 'Berlin, Deutschland');
expect(response.body.ocs.data.lat, '52.5170365');
expect(response.body.ocs.data.lon, '13.3888599');
expect(response.body.ocs.data.lat, isNotEmpty);
expect(response.body.ocs.data.lon, isNotEmpty);
});

test('Set location', () async {
Expand All @@ -55,8 +55,8 @@ void main() {
expect(response.statusCode, 200);
expect(response.body.ocs.data.success, true);
expect(response.body.ocs.data.address, 'Hamburg, Deutschland');
expect(response.body.ocs.data.lat, '53.550341');
expect(response.body.ocs.data.lon, '10.000654');
expect(response.body.ocs.data.lat, isNotEmpty);
expect(response.body.ocs.data.lon, isNotEmpty);

response = await client.weatherStatus.weatherStatus.setLocation(
$body: weather_status.WeatherStatusSetLocationRequestApplicationJson(
Expand Down Expand Up @@ -100,8 +100,8 @@ void main() {
expect(response.statusCode, 200);
expect(response.body.ocs.data.success, true);
expect(response.body.ocs.data.address, 'Berlin, Deutschland');
expect(response.body.ocs.data.lat, '52.5170365');
expect(response.body.ocs.data.lon, '13.3888599');
expect(response.body.ocs.data.lat, isNotEmpty);
expect(response.body.ocs.data.lon, isNotEmpty);
},
skip: preset.version < Version(29, 0, 0),
);
Expand Down

0 comments on commit b8a8700

Please sign in to comment.