Skip to content

Commit a73dcdb

Browse files
committed
Use TeamWithPermission on test
1 parent 37eae08 commit a73dcdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/scala/com/codacy/client/bitbucket/v2/UserSpecs.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class UserSpecs extends FlatSpec with Matchers with Inside {
4747

4848
value.fold(e => fail(s"$e"), emails => emails.length shouldBe 3)
4949
}
50-
it should "successfully parse a JSON into an array of Team" in {
50+
it should "successfully parse a JSON into an array of TeamWithPermission" in {
5151
val input = """
5252
|[
5353
|{
@@ -133,7 +133,7 @@ class UserSpecs extends FlatSpec with Matchers with Inside {
133133
|]
134134
""".stripMargin
135135
val json = Json.parse(input)
136-
val value = json.validate[Seq[Team]]
136+
val value = json.validate[Seq[TeamWithPermission]]
137137

138138
value.fold(e => fail(s"$e"), teams => teams.length shouldBe 2)
139139
}

0 commit comments

Comments
 (0)