Update linting and formatting rules (#261)
* Add new linting rules * Apply new linting rules * Fix dart sdk version * Format code to 80 lines
This commit is contained in:
parent
f17cef9523
commit
3af5406f60
74 changed files with 1049 additions and 481 deletions
|
|
@ -93,7 +93,8 @@ void main() {
|
|||
''';
|
||||
|
||||
final decoded = jsonDecode(sampleJson) as List;
|
||||
final List<EmoteBTTV> emotes = decoded.map((emote) => EmoteBTTV.fromJson(emote)).toList();
|
||||
final List<EmoteBTTV> emotes =
|
||||
decoded.map((emote) => EmoteBTTV.fromJson(emote)).toList();
|
||||
expect(emotes.length, 4);
|
||||
|
||||
final emoteIds = [
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ void main() {
|
|||
expect(stream.title, 'A shorter title...');
|
||||
expect(stream.viewerCount, 50051);
|
||||
expect(stream.startedAt, '2021-09-23T20:06:22Z');
|
||||
expect(stream.thumbnailUrl, 'https://static-cdn.jtvnw.net/previews-ttv/live_user_xqcow-{width}x{height}.jpg');
|
||||
expect(stream.thumbnailUrl,
|
||||
'https://static-cdn.jtvnw.net/previews-ttv/live_user_xqcow-{width}x{height}.jpg');
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue