@@ -42,17 +42,17 @@ describe("content command", () => {
4242 it ( "validates an artist" , async ( ) => {
4343 vi . mocked ( get ) . mockResolvedValue ( {
4444 status : "success" ,
45- artist_slug : "gatsby-grace " ,
45+ artist_account_id : "550e8400-e29b-41d4-a716-446655440000 " ,
4646 ready : true ,
4747 missing : [ ] ,
4848 } ) ;
4949
50- await contentCommand . parseAsync ( [ "validate" , "--artist" , "gatsby-grace " ] , { from : "user" } ) ;
50+ await contentCommand . parseAsync ( [ "validate" , "--artist" , "550e8400-e29b-41d4-a716-446655440000 " ] , { from : "user" } ) ;
5151
5252 expect ( get ) . toHaveBeenCalledWith ( "/api/content/validate" , {
53- artist_slug : "gatsby-grace " ,
53+ artist_account_id : "550e8400-e29b-41d4-a716-446655440000 " ,
5454 } ) ;
55- expect ( logSpy ) . toHaveBeenCalledWith ( "Artist: gatsby-grace " ) ;
55+ expect ( logSpy ) . toHaveBeenCalledWith ( "Ready: yes " ) ;
5656 } ) ;
5757
5858 it ( "estimates content cost" , async ( ) => {
@@ -79,12 +79,12 @@ describe("content command", () => {
7979 } ) ;
8080
8181 await contentCommand . parseAsync (
82- [ "create" , "--artist" , "gatsby-grace " , "--template" , "artist-caption-bedroom" ] ,
82+ [ "create" , "--artist" , "550e8400-e29b-41d4-a716-446655440000 " , "--template" , "artist-caption-bedroom" ] ,
8383 { from : "user" } ,
8484 ) ;
8585
8686 expect ( post ) . toHaveBeenCalledWith ( "/api/content/create" , {
87- artist_slug : "gatsby-grace " ,
87+ artist_account_id : "550e8400-e29b-41d4-a716-446655440000 " ,
8888 template : "artist-caption-bedroom" ,
8989 lipsync : false ,
9090 caption_length : "short" ,
@@ -106,7 +106,7 @@ describe("content command", () => {
106106 ) ;
107107
108108 expect ( post ) . toHaveBeenCalledWith ( "/api/content/create" , {
109- artist_slug : "test-artist" ,
109+ artist_account_id : "test-artist" ,
110110 template : "artist-caption-bedroom" ,
111111 lipsync : false ,
112112 caption_length : "long" ,
0 commit comments