@@ -59,6 +59,15 @@ describe('Sticker', () => {
59
59
const { height, width } = sizeOf ( buffer )
60
60
assert . equal ( height , width )
61
61
} )
62
+
63
+ it ( 'should create a star sticker same height and width' , async ( ) => {
64
+ const sticker = new Sticker ( images . static . landscape , {
65
+ type : StickerTypes . STAR
66
+ } )
67
+ const buffer = await sticker . build ( )
68
+ const { height, width } = sizeOf ( buffer )
69
+ assert . equal ( height , width )
70
+ } )
62
71
} )
63
72
64
73
describe ( 'Animated Stickers' , ( ) => {
@@ -98,6 +107,16 @@ describe('Sticker', () => {
98
107
assert . equal ( width , 512 )
99
108
} )
100
109
110
+ it ( 'should create an animated star sticker with size 512x512' , async ( ) => {
111
+ const sticker = new Sticker ( images . animated . potrait , {
112
+ type : StickerTypes . STAR
113
+ } )
114
+ const buffer = await sticker . build ( )
115
+ const { height, width } = sizeOf ( buffer )
116
+ assert . equal ( height , 512 )
117
+ assert . equal ( width , 512 )
118
+ } )
119
+
101
120
it ( 'should create an animated sticker same height and width' , async ( ) => {
102
121
const sticker = new Sticker ( images . animated . potrait , {
103
122
type : StickerTypes . FULL
0 commit comments