Skip to content

Commit

Permalink
Merge pull request #6 from sinhashubham95/version
Browse files Browse the repository at this point in the history
v1.0.2
  • Loading branch information
sinhashubham95 authored Jul 28, 2021
2 parents 18954d4 + 9233545 commit 35f1eb1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions models/mockrequest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ func TestMockRequestEmptyPath(t *testing.T) {
assert.Equal(t, "empty path provided", err.Error())
}

func TestMockRequestBasePath(t *testing.T) {
m := &models.MockRequest{
Tag: "1234",
Method: "GET",
Path: "/",
ResponseBody: "naruto",
}
err := m.Validate()
assert.Error(t, err)
assert.Equal(t, fmt.Errorf("path cannot be %s", commons.BasePath), err)
}

func TestMockRequestActuatorPath(t *testing.T) {
m := &models.MockRequest{
Tag: "1234",
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "moxy",
"version": "1.0.1"
"version": "1.0.2"
}

0 comments on commit 35f1eb1

Please sign in to comment.