From ea1ddfc162d546ef83bcdbe8d3d5620d292ca306 Mon Sep 17 00:00:00 2001 From: Jose Leandro Torres Date: Thu, 10 Sep 2020 13:26:20 -0500 Subject: [PATCH] fix: htmlElementRef in Button component (#1813) --- src/components/Button/__test__/button.spec.js | 6 ++++++ src/components/Button/index.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/Button/__test__/button.spec.js b/src/components/Button/__test__/button.spec.js index 81acfeb3e..ccb7587fb 100644 --- a/src/components/Button/__test__/button.spec.js +++ b/src/components/Button/__test__/button.spec.js @@ -79,4 +79,10 @@ describe('); expect(component.text()).toBe('Test'); }); + it('should return the html button element when access the htmlElementRef getter', () => { + const component = mount(