1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-16 11:15:07 +00:00

design refresh

This commit is contained in:
Benjamin Gamard
2017-11-03 00:10:17 +01:00
parent a980930e69
commit 14b4e5aeec
13 changed files with 30 additions and 28 deletions

View File

@@ -32,13 +32,13 @@ public class TestThemeResource extends BaseJerseyTest {
// Get the stylesheet anonymously
String stylesheet = target().path("/theme/stylesheet").request()
.get(String.class);
Assert.assertTrue(stylesheet.contains("background-color: #263238;"));
Assert.assertTrue(stylesheet.contains("background-color: #24292e;"));
// Get the theme configuration anonymously
JsonObject json = target().path("/theme").request()
.get(JsonObject.class);
Assert.assertEquals("Sismics Docs", json.getString("name"));
Assert.assertEquals("#263238", json.getString("color"));
Assert.assertEquals("#24292e", json.getString("color"));
Assert.assertEquals("", json.getString("css"));
// Update the main color as admin