You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
403 B
14 lines
403 B
package outwatch
|
|
package router
|
|
|
|
import org.scalatest.flatspec.AnyFlatSpec
|
|
import org.scalatest.matchers.should.Matchers
|
|
|
|
class PathTestSpec extends AnyFlatSpec with Matchers {
|
|
class PathTest(url: String, path: Path) {
|
|
path.toUrlString should equal(url)
|
|
}
|
|
|
|
"Root url" should "be /" in new PathTest("/", Root)
|
|
"A 1 part path" should "be correct" in new PathTest("/search", Root / "search")
|
|
}
|