Skip to content

Commit

Permalink
Updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryKleinjanCACI committed May 10, 2024
1 parent 08447c2 commit c2a02e2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/handlers/primeapi/move_task_order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ func (suite *HandlerSuite) TestGetMoveTaskOrder() {
},
{
Model: models.ReService{
Code: models.ReServiceCodeDCRT,
Code: models.ReServiceCodeDCRTSA,
},
},
}, nil)
Expand Down
2 changes: 1 addition & 1 deletion pkg/handlers/primeapiv2/payloads/model_to_payload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ func (suite *PayloadsSuite) TestMTOServiceItemDCRT() {
}

func (suite *PayloadsSuite) TestMTOServiceItemDCRTSA() {
reServiceCode := models.ReServiceCodeDCRT
reServiceCode := models.ReServiceCodeDCRTSA
reason := "reason"
dateOfContact1 := time.Now()
timeMilitary1 := "1500Z"
Expand Down
2 changes: 1 addition & 1 deletion pkg/handlers/primeapiv3/move_task_order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ func (suite *HandlerSuite) TestGetMoveTaskOrder() {
suite.NotNil(payload.ETag())
})

suite.Run("Success - return all MTOServiceItemStandardCrating fields assoicated with the getMoveTaskOrder", func() {
suite.Run("Success - return all MTOServiceItemStandaloneCrating fields assoicated with the getMoveTaskOrder", func() {
handler := GetMoveTaskOrderHandler{
suite.HandlerConfig(),
movetaskorder.NewMoveTaskOrderFetcher(),
Expand Down
5 changes: 2 additions & 3 deletions pkg/handlers/primeapiv3/mto_service_item_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ func (suite *HandlerSuite) TestCreateMTOServiceItemDomesticCratingHandler() {
})
}

func (suite *HandlerSuite) TestCreateMTOServiceItemStandardCratingHandler() {
func (suite *HandlerSuite) TestCreateMTOServiceItemDomesticStandaloneCratingHandler() {
builder := query.NewQueryBuilder()
mtoChecker := movetaskorder.NewMoveTaskOrderChecker()

Expand All @@ -599,8 +599,7 @@ func (suite *HandlerSuite) TestCreateMTOServiceItemStandardCratingHandler() {
LinkOnly: true,
},
}, nil)
factory.BuildReServiceByCode(suite.DB(), models.ReServiceCodeDCRT)
factory.BuildReServiceByCode(suite.DB(), models.ReServiceCodeDUCRT)
factory.BuildReServiceByCode(suite.DB(), models.ReServiceCodeDCRTSA)
subtestData.req = httptest.NewRequest("POST", "/mto-service-items", nil)

subtestData.mtoServiceItem = models.MTOServiceItem{
Expand Down

0 comments on commit c2a02e2

Please sign in to comment.