Skip to content

Commit 7cb9d62

Browse files
author
Dennis Labordus
committed
Added test and move function.
Signed-off-by: Dennis Labordus <dennis.labordus@alliander.com>
1 parent b3974ac commit 7cb9d62

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/unit/compas/CompasLabelsField.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ describe('compas-labels-field', () => {
3939
expect(labelElements.length).to.be.equal(1);
4040
});
4141

42+
it('when calling updateLabelsInPrivateElement then Private Element is updated', async () => {
43+
expect(privateElement.querySelectorAll('Label').length).to.be.equal(0);
44+
45+
await addLabel(element, 'Label1');
46+
element.updateLabelsInPrivateElement(privateElement);
47+
48+
expect(privateElement.querySelectorAll('Label').length).to.be.equal(1);
49+
});
50+
4251
it('looks like the latest snapshot', async () => {
4352
await expect(element).shadowDom.to.equalSnapshot();
4453
});

0 commit comments

Comments
 (0)