File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,14 @@ test("Test - Create & manipulate parsing results", () => {
8787 expect ( result . toString ( ) ) . toContain ( text ) ;
8888 expect ( result . toString ( ) ) . toContain ( "custom/testing_start_component_tag" ) ;
8989 expect ( result . toString ( ) ) . toContain ( "custom/testing_end_component_tag" ) ;
90+
91+ // The result's addTag() and addTags() should add the tags to both start/end components
92+ result . addTag ( "custom/testing_result_tag1" ) ;
93+ result . addTags ( [ "custom/testing_result_tag2" ] ) ;
94+ expect ( startComponents . tags ( ) ) . toContain ( "custom/testing_result_tag1" ) ;
95+ expect ( startComponents . tags ( ) ) . toContain ( "custom/testing_result_tag2" ) ;
96+ expect ( endComponents . tags ( ) ) . toContain ( "custom/testing_result_tag1" ) ;
97+ expect ( endComponents . tags ( ) ) . toContain ( "custom/testing_result_tag2" ) ;
9098} ) ;
9199
92100test ( "Test - Calendar checking with implied components" , ( ) => {
You can’t perform that action at this time.
0 commit comments