Skip to content

Commit

Permalink
remove getError test
Browse files Browse the repository at this point in the history
  • Loading branch information
bvasya committed Aug 20, 2024
1 parent c622002 commit ed5be99
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions test/spotify_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,6 @@ Future main() async {
expect(audioFeatures.id, '11dFghVXANMlKmJXsNCbNl');
});

test('getError', () async {
spotify.mockHttpErrors = [
MockHttpError(statusCode: 404, message: 'analysis not found')
].iterator;
late SpotifyException ex;
try {
await spotify.audioFeatures.get('2cs7JxrZ9DxvsfoVI07ayX');
} on SpotifyException catch (e) {
expect(e, isA<SpotifyException>());
ex = e;
}
expect(ex, isNotNull);
expect(ex.status, 404);
expect(ex.message, 'analysis not found');
});

test('list', () async {
var audioFeatures = await spotify.audioFeatures
.list(['11dFghVXANMlKmJXsNCbNl', '2cs7JxrZ9DxvsfoVI07ayX']);
Expand Down

0 comments on commit ed5be99

Please sign in to comment.