Skip to content

Commit

Permalink
code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
samaysofo committed Feb 25, 2025
1 parent 01898bf commit 7bb6fb5
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions pkg/services/move/move_router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,15 +501,10 @@ func (suite *MoveServiceSuite) TestMoveSubmission() {
}, nil)
err := moveRouter.Submit(suite.AppContextForTest(), &move, &newSignedCertification)

if err != nil {
suite.Error(err)
suite.Contains(err.Error(), "Failed to find counseling office that provides counseling")
} else {
suite.NoError(err)
suite.Equal(models.MoveStatusNeedsServiceCounseling, move.Status, "expected Needs Service Counseling")
suite.Equal(models.MTOShipmentStatusSubmitted, move.MTOShipments[0].Status, "expected Submitted")
suite.Equal(models.PPMShipmentStatusSubmitted, move.MTOShipments[0].PPMShipment.Status, "expected Submitted")
}
suite.NoError(err)
suite.Equal(models.MoveStatusNeedsServiceCounseling, move.Status, "expected Needs Service Counseling")
suite.Equal(models.MTOShipmentStatusSubmitted, move.MTOShipments[0].Status, "expected Submitted")
suite.Equal(models.PPMShipmentStatusSubmitted, move.MTOShipments[0].PPMShipment.Status, "expected Submitted")
})

suite.Run("returns an error when a Mobile Home Shipment is not formatted correctly", func() {
Expand Down

0 comments on commit 7bb6fb5

Please sign in to comment.