Skip to content

Commit

Permalink
test case update
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevatkm committed Sep 1, 2017
1 parent 6fa92f0 commit 89e3caa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions param_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,16 @@ func TestParamContentNegotiation(t *testing.T) {
assert.True(t, result2 == 1)

isContentNegotiationEnabled = false

appConfig, _ = config.ParseString(`
request {
content_negotiation {
accepted = ["*/*"]
offered = ["*/*"]
}
}`)
paramInitialize(&Event{})
appConfig = nil
}

func TestParamAddValueParser(t *testing.T) {
Expand Down
7 changes: 7 additions & 0 deletions router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"testing"

"aahframework.org/config.v0"
"aahframework.org/router.v0-unstable"
"aahframework.org/test.v0/assert"
)

Expand Down Expand Up @@ -43,3 +44,9 @@ func TestRouterTemplateFuncs(t *testing.T) {

ctx.Reset()
}

func TestRouterMisc(t *testing.T) {
domain := &router.Domain{Host: "localhost"}
result := composeRouteURL(domain, "/path", "my-head")
assert.Equal(t, "//localhost/path#my-head", result)
}

0 comments on commit 89e3caa

Please sign in to comment.