@@ -24,7 +24,7 @@ test.beforeEach((t) => {
2424 } ,
2525 status : "Toot" ,
2626 statusId : "1234567890987654321" ,
27- tootUrl : "https://mastodon.example/@username/1234567890987654321" ,
27+ statusUrl : "https://mastodon.example/@username/1234567890987654321" ,
2828 } ;
2929} ) ;
3030
@@ -34,7 +34,7 @@ test("Posts a favourite", async (t) => {
3434 . reply ( 200 , t . context . apiResponse ) ;
3535
3636 const result = await mastodon ( t . context . options ) . postFavourite (
37- t . context . tootUrl
37+ t . context . statusUrl
3838 ) ;
3939
4040 t . is ( result , `https://mastodon.example/@username/${ t . context . statusId } ` ) ;
@@ -46,7 +46,7 @@ test("Throws error posting a favourite", async (t) => {
4646 . reply ( 404 , { message : "Not found" } ) ;
4747
4848 await t . throwsAsync (
49- mastodon ( t . context . options ) . postFavourite ( t . context . tootUrl ) ,
49+ mastodon ( t . context . options ) . postFavourite ( t . context . statusUrl ) ,
5050 {
5151 message : "Request failed with status code 404" ,
5252 }
@@ -59,7 +59,7 @@ test("Posts a reblog", async (t) => {
5959 . reply ( 200 , t . context . apiResponse ) ;
6060
6161 const result = await mastodon ( t . context . options ) . postReblog (
62- t . context . tootUrl
62+ t . context . statusUrl
6363 ) ;
6464
6565 t . is ( result , `https://mastodon.example/@username/${ t . context . statusId } ` ) ;
@@ -71,7 +71,7 @@ test("Throws error posting a reblog", async (t) => {
7171 . reply ( 404 , { message : "Not found" } ) ;
7272
7373 await t . throwsAsync (
74- mastodon ( t . context . options ) . postReblog ( t . context . tootUrl ) ,
74+ mastodon ( t . context . options ) . postReblog ( t . context . statusUrl ) ,
7575 {
7676 message : "Request failed with status code 404" ,
7777 }
@@ -156,14 +156,14 @@ test("Returns false passing an object to media upload function", async (t) => {
156156 t . falsy ( result ) ;
157157} ) ;
158158
159- test ( "Posts a favourite of a toot to Mastodon" , async ( t ) => {
159+ test ( "Posts a favourite of a Mastodon status to Mastodon" , async ( t ) => {
160160 nock ( t . context . options . serverUrl )
161161 . post ( `/api/v1/statuses/${ t . context . statusId } /favourite` )
162162 . reply ( 200 , t . context . apiResponse ) ;
163163
164164 const result = await mastodon ( t . context . options ) . post (
165165 {
166- "like-of" : t . context . tootUrl ,
166+ "like-of" : t . context . statusUrl ,
167167 } ,
168168 t . context . me
169169 ) ;
@@ -182,14 +182,14 @@ test("Doesn’t post a favourite of a URL to Mastodon", async (t) => {
182182 t . falsy ( result ) ;
183183} ) ;
184184
185- test ( "Posts a repost of a toot to Mastodon" , async ( t ) => {
185+ test ( "Posts a repost of a Mastodon status to Mastodon" , async ( t ) => {
186186 nock ( t . context . options . serverUrl )
187187 . post ( `/api/v1/statuses/${ t . context . statusId } /reblog` )
188188 . reply ( 200 , t . context . apiResponse ) ;
189189
190190 const result = await mastodon ( t . context . options ) . post (
191191 {
192- "repost-of" : t . context . tootUrl ,
192+ "repost-of" : t . context . statusUrl ,
193193 } ,
194194 t . context . me
195195 ) ;
@@ -218,7 +218,7 @@ test("Posts a quote status to Mastodon", async (t) => {
218218 content : {
219219 html : "<p>Someone else who likes cheese sandwiches.</p>" ,
220220 } ,
221- "repost-of" : t . context . tootUrl ,
221+ "repost-of" : t . context . statusUrl ,
222222 "post-type" : "repost" ,
223223 } ,
224224 t . context . me
0 commit comments