@@ -220,7 +220,7 @@ describe("account", () => {
220220      . $select ( bob . id ) 
221221      . followers . list ( ) ; 
222222
223-     expect ( followers ) . toContainId ( alice . id ) ; 
223+     expect ( followers ) . toContainEqual ( alice . account ) ; 
224224    await  alice . rest . v1 . accounts . $select ( bob . id ) . unfollow ( ) ; 
225225  } ) ; 
226226
@@ -233,7 +233,7 @@ describe("account", () => {
233233      . $select ( alice . id ) 
234234      . following . list ( ) ; 
235235
236-     expect ( accounts ) . toContainId ( bob . id ) ; 
236+     expect ( accounts ) . toContainEqual ( bob . account ) ; 
237237    await  alice . rest . v1 . accounts . $select ( bob . id ) . unfollow ( ) ; 
238238  } ) ; 
239239
@@ -244,7 +244,7 @@ describe("account", () => {
244244      . $select ( status . account . id ) 
245245      . statuses . list ( ) ; 
246246
247-     expect ( statuses ) . toContainId ( status . id ) ; 
247+     expect ( statuses ) . toContainEqual ( status ) ; 
248248  } ) ; 
249249
250250  it ( "searches" ,  async  ( )  =>  { 
@@ -253,7 +253,7 @@ describe("account", () => {
253253    const  accounts  =  await  client . rest . v1 . accounts . search . list ( { 
254254      q : me . username , 
255255    } ) ; 
256-     expect ( accounts ) . toContainId ( me . id ) ; 
256+     expect ( accounts ) . toContainEqual ( me ) ; 
257257  } ) ; 
258258
259259  it ( "lists lists" ,  async  ( )  =>  { 
@@ -266,10 +266,8 @@ describe("account", () => {
266266      await  alice . rest . v1 . lists . $select ( list . id ) . accounts . create ( { 
267267        accountIds : [ bob . id ] , 
268268      } ) ; 
269-       const  accounts  =  await  alice . rest . v1 . accounts 
270-         . $select ( bob . id ) 
271-         . lists . list ( ) ; 
272-       expect ( accounts ) . toContainId ( list . id ) ; 
269+       const  lists  =  await  alice . rest . v1 . accounts . $select ( bob . id ) . lists . list ( ) ; 
270+       expect ( lists ) . toContainEqual ( list ) ; 
273271    }  finally  { 
274272      await  alice . rest . v1 . lists . $select ( list . id ) . remove ( ) ; 
275273    } 
@@ -284,7 +282,7 @@ describe("account", () => {
284282    const  tags  =  await  client . rest . v1 . accounts 
285283      . $select ( client . id ) 
286284      . featuredTags . list ( ) ; 
287-     expect ( tags ) . toContainId ( featuredTag . id ) ; 
285+     expect ( tags ) . toContainEqual ( featuredTag ) ; 
288286
289287    await  client . rest . v1 . featuredTags . $select ( featuredTag . id ) . remove ( ) ; 
290288  } ) ; 
@@ -308,7 +306,7 @@ describe("account", () => {
308306  it ( "lookup" ,  async  ( )  =>  { 
309307    await  using client  =  await  sessions . acquire ( ) ; 
310308    const  account  =  await  client . rest . v1 . accounts . lookup ( { 
311-       acct : client . acct , 
309+       acct : client . account . acct , 
312310    } ) ; 
313311    expect ( account . id ) . toBe ( client . id ) ; 
314312  } ) ; 
0 commit comments