forked from tildetown/bbj2
		
	WIP tests
This commit is contained in:
		
							parent
							
								
									b804ae9d32
								
							
						
					
					
						commit
						6dc8964dd6
					
				| @ -11,12 +11,26 @@ func TestInstanceInfo(t *testing.T) { | ||||
| 		name     string | ||||
| 		opts     config.Options | ||||
| 		wantResp *BBJResponse | ||||
| 		wantErr  HTTPError | ||||
| 		wantErr  *HTTPError | ||||
| 	}{} | ||||
| 
 | ||||
| 	for _, tt := range ts { | ||||
| 		t.Run(tt.name, func(t *testing.T) { | ||||
| 			// TODO | ||||
| 			api := &API{ | ||||
| 				Opts: config.Options{ | ||||
| 					// TODO | ||||
| 				}, | ||||
| 				User: nil, | ||||
| 			} | ||||
| 			resp, err := api.InstanceInfo() | ||||
| 			if tt.wantErr != nil && err != nil { | ||||
| 				t.Errorf("got unwanted error: %s", err.Error()) | ||||
| 				return | ||||
| 			} | ||||
| 			if tt.wantResp != resp { | ||||
| 				t.Errorf("wanted %#v got %#v", tt.wantResp, resp) | ||||
| 				return | ||||
| 			} | ||||
| 		}) | ||||
| 	} | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user