@@ -34,7 +34,7 @@ describe("readLogoSizing", () => {
34
34
it ( "returns the height when imageSize returns only a height smaller than the maximum" , ( ) => {
35
35
const height = 100 ;
36
36
37
- mockImageSize . mockReturnValueOnce ( { height } ) ;
37
+ mockImageSize . mockReturnValueOnce ( { height, type : "png" } ) ;
38
38
39
39
const actual = readLogoSizing ( src ) ;
40
40
@@ -44,7 +44,7 @@ describe("readLogoSizing", () => {
44
44
it ( "returns maximum height when imageSize returns only a height greater than the maximum" , ( ) => {
45
45
const height = 129 ;
46
46
47
- mockImageSize . mockReturnValueOnce ( { height } ) ;
47
+ mockImageSize . mockReturnValueOnce ( { height, type : "png" } ) ;
48
48
49
49
const actual = readLogoSizing ( src ) ;
50
50
@@ -54,7 +54,7 @@ describe("readLogoSizing", () => {
54
54
it ( "returns the width when imageSize returns only a width smaller than the maximum" , ( ) => {
55
55
const width = 100 ;
56
56
57
- mockImageSize . mockReturnValueOnce ( { width } ) ;
57
+ mockImageSize . mockReturnValueOnce ( { type : "png" , width } ) ;
58
58
59
59
const actual = readLogoSizing ( src ) ;
60
60
@@ -64,7 +64,7 @@ describe("readLogoSizing", () => {
64
64
it ( "returns maximum width when imageSize returns only a width greater than the maximum" , ( ) => {
65
65
const width = 129 ;
66
66
67
- mockImageSize . mockReturnValueOnce ( { width } ) ;
67
+ mockImageSize . mockReturnValueOnce ( { type : "png" , width } ) ;
68
68
69
69
const actual = readLogoSizing ( src ) ;
70
70
@@ -75,7 +75,7 @@ describe("readLogoSizing", () => {
75
75
const height = 101 ;
76
76
const width = 102 ;
77
77
78
- mockImageSize . mockReturnValueOnce ( { height, width } ) ;
78
+ mockImageSize . mockReturnValueOnce ( { height, type : "png" , width } ) ;
79
79
80
80
const actual = readLogoSizing ( src ) ;
81
81
@@ -86,7 +86,7 @@ describe("readLogoSizing", () => {
86
86
const height = 1280 ;
87
87
const width = 1000 ;
88
88
89
- mockImageSize . mockReturnValueOnce ( { height, width } ) ;
89
+ mockImageSize . mockReturnValueOnce ( { height, type : "png" , width } ) ;
90
90
91
91
const actual = readLogoSizing ( src ) ;
92
92
@@ -97,7 +97,7 @@ describe("readLogoSizing", () => {
97
97
const height = 1000 ;
98
98
const width = 1280 ;
99
99
100
- mockImageSize . mockReturnValueOnce ( { height, width } ) ;
100
+ mockImageSize . mockReturnValueOnce ( { height, type : "png" , width } ) ;
101
101
102
102
const actual = readLogoSizing ( src ) ;
103
103
0 commit comments