added tests, fixed issues with overriding/format
In the documentation it states that child values can override the parent values. Originally this code did not support that but now it does. Also added in testing inspired by the previous tests. Signed-off-by: cullvox <cullvox@outlook.com>
This commit is contained in:
13
tests/testdata/MetaComponentParse/component_with_format.json
vendored
Normal file
13
tests/testdata/MetaComponentParse/component_with_format.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"description": [
|
||||
{
|
||||
"text": "Hello, Component!",
|
||||
"color": "blue",
|
||||
"bold": true,
|
||||
"italic": true,
|
||||
"underlined": true,
|
||||
"strikethrough": true
|
||||
}
|
||||
],
|
||||
"expected_output": "<font color=\"blue\"><b><i><u><s>Hello, Component!</s></u></i></b></font>"
|
||||
}
|
||||
Reference in New Issue
Block a user