File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change
1
+ import 'package:discord_api/src/discord_cdn_helper.dart' ;
1
2
import 'package:flutter_test/flutter_test.dart' ;
2
3
3
- import 'package:discord_api/discord_api.dart' ;
4
-
5
4
void main () {
6
- test ('adds one to input values' , () {
7
- final calculator = Calculator ();
8
- expect (calculator.addOne (2 ), 3 );
9
- expect (calculator.addOne (- 7 ), - 6 );
10
- expect (calculator.addOne (0 ), 1 );
5
+ final cdn = DiscordCdnHelper .instance;
6
+
7
+ group ('DiscordCdnHelper tests' , () {
8
+ test ("Get 131492741409538048's Avatar in size 64" , () {
9
+ final value = cdn.getUserAvatar (
10
+ userId: "131492741409538048" ,
11
+ userAvatarHash: "64d4f5dfcb00059794c20f656cb19c2b" ,
12
+ size: 64 );
13
+ expect (value, isNotNull);
14
+ expect (value,
15
+ "https://cdn.discordapp.com/avatars/131492741409538048/64d4f5dfcb00059794c20f656cb19c2b.png?size=64" );
16
+ });
11
17
});
12
18
}
You can’t perform that action at this time.
0 commit comments