-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #260 from guardian/fix-scala-2.13-warnings
Fix scala 2.13 warnings
- Loading branch information
Showing
10 changed files
with
80 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,23 +128,23 @@ class CollectionTest extends FreeSpec with Matchers with MockitoSugar with OneIn | |
|
||
"creates a Facia collection from the collection JSON and provided config" in { | ||
collection should have( | ||
'id("id"), | ||
'draft(None), | ||
'href(Some("collectionConfigHref")), | ||
'lastUpdated(Some(new DateTime(1))), | ||
'updatedBy(Some("test")), | ||
'updatedEmail(Some("[email protected]")), | ||
'displayName("displayName") | ||
Symbol("id")("id"), | ||
Symbol("draft")(None), | ||
Symbol("href")(Some("collectionConfigHref")), | ||
Symbol("lastUpdated")(Some(new DateTime(1))), | ||
Symbol("updatedBy")(Some("test")), | ||
Symbol("updatedEmail")(Some("[email protected]")), | ||
Symbol("displayName")("displayName") | ||
) | ||
|
||
collection.collectionConfig should have ( | ||
'href(Some("collectionConfigHref")) | ||
Symbol("href")(Some("collectionConfigHref")) | ||
) | ||
} | ||
|
||
"creates metadata from provided config JSON" in { | ||
collection.collectionConfig should have( | ||
'metadata (Some(List(Branded))) | ||
Symbol("metadata") (Some(List(Branded))) | ||
) | ||
} | ||
} | ||
|
@@ -155,7 +155,7 @@ class CollectionTest extends FreeSpec with Matchers with MockitoSugar with OneIn | |
"Uses content fields when no facia override exists" in { | ||
val curatedContent = Collection.liveContent(collection, contents) | ||
curatedContent.head should have ( | ||
'headline ("Content headline") | ||
Symbol("headline") ("Content headline") | ||
) | ||
} | ||
|
||
|
@@ -167,9 +167,9 @@ class CollectionTest extends FreeSpec with Matchers with MockitoSugar with OneIn | |
|
||
val curatedContent = Collection.liveContent(collection, contents) | ||
curatedContent.head should have ( | ||
'headline ("trail headline"), | ||
'href (Some("trail href")), | ||
'kicker (Some(FreeHtmlKicker("Custom kicker"))) | ||
Symbol("headline") ("trail headline"), | ||
Symbol("href") (Some("trail href")), | ||
Symbol("kicker") (Some(FreeHtmlKicker("Custom kicker"))) | ||
) | ||
} | ||
|
||
|
@@ -456,7 +456,7 @@ class CollectionTest extends FreeSpec with Matchers with MockitoSugar with OneIn | |
val result = Collection.liveContent(collection, contents) | ||
result.length should be (1) | ||
result.head should have ( | ||
'headline("straight banana") | ||
Symbol("headline")("straight banana") | ||
) | ||
} | ||
"supporting with internalPageCode" in { | ||
|
@@ -467,7 +467,7 @@ class CollectionTest extends FreeSpec with Matchers with MockitoSugar with OneIn | |
val result = Collection.liveContent(collection, contents) | ||
result.length should be (1) | ||
result.head should have ( | ||
'headline("straw berry") | ||
Symbol("headline")("straw berry") | ||
) | ||
FaciaContentUtils.headline(FaciaContentUtils.supporting(result.head).head) should be ("straight banana") | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters