@@ -16,26 +16,26 @@ beforeEach(() => {
1616 process . env . REPLICATE_API_TOKEN = "test-token-from-env" ;
1717
1818 client = new ReplicateClient ( { } ) ;
19- prediction = client . prediction ( "test-prediction " ) ;
19+ prediction = client . prediction ( "testprediction " ) ;
2020} ) ;
2121
2222describe ( "load()" , ( ) => {
2323 it ( "makes request to get prediction" , async ( ) => {
2424 jest . spyOn ( client , "request" ) . mockResolvedValue ( {
25- id : "test-prediction " ,
25+ id : "testprediction " ,
2626 status : PredictionStatus . SUCCEEDED ,
2727 } ) ;
2828
2929 await prediction . load ( ) ;
3030
3131 expect ( client . request ) . toHaveBeenCalledWith (
32- "GET /v1/predictions/test-prediction "
32+ "GET /v1/predictions/testprediction "
3333 ) ;
3434 } ) ;
3535
36- it ( "returns a Prediction" , async ( ) => {
36+ it ( "returns Prediction" , async ( ) => {
3737 jest . spyOn ( client , "request" ) . mockResolvedValue ( {
38- id : "test-prediction " ,
38+ id : "testprediction " ,
3939 status : PredictionStatus . SUCCEEDED ,
4040 } ) ;
4141
@@ -46,7 +46,7 @@ describe("load()", () => {
4646
4747 it ( "updates the prediction in place" , async ( ) => {
4848 jest . spyOn ( client , "request" ) . mockResolvedValue ( {
49- id : "test-prediction " ,
49+ id : "testprediction " ,
5050 status : PredictionStatus . SUCCEEDED ,
5151 } ) ;
5252
0 commit comments