You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/utils_spec.coffee
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ describe "utils", ->
84
84
expect(()->utils.url("test", {url_suffix:"hello"})).to.be.throwError(/URL Suffix only supported in private CDN/)
85
85
86
86
it"should disallow url_suffix in non upload types" , ->
87
-
expect(()->utils.url("test", {url_suffix:"hello", private_cdn:true, type:'facebook'})).to.be.throwError(/URL Suffix only supported for image\/upload and raw\/upload/)
87
+
expect(()->utils.url("test", {url_suffix:"hello", private_cdn:true, type:'facebook'})).to.be.throwError(/URL Suffix only supported for image\/upload, image\/private, image\/authenticated, video\/upload and raw\/upload/)
88
88
89
89
it"should disallow url_suffix with / or ." , ->
90
90
expect(()->utils.url("test", {url_suffix:"hello/world", private_cdn:true})).to.be.throwError(/url_suffix should not include . or \//)
@@ -111,6 +111,12 @@ describe "utils", ->
111
111
it"should support url_suffix for raw uploads" , ->
0 commit comments