From 0d113d2eade0432e4bad4f229812b9a29b0d2593 Mon Sep 17 00:00:00 2001 From: Ricardo Machado Date: Wed, 15 Nov 2017 13:31:32 +0100 Subject: [PATCH] Adds assertion to verify if Badge returns null when no children is provided and the badge is not visible --- tests/unit/badge/badge.spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/badge/badge.spec.js b/tests/unit/badge/badge.spec.js index 976ea5d6..2d7ad7cd 100644 --- a/tests/unit/badge/badge.spec.js +++ b/tests/unit/badge/badge.spec.js @@ -9,6 +9,7 @@ describe('Badge', () => { ); expect(wrapper).toMatchSnapshot(); + expect(wrapper.html()).toEqual(null); }); it('should return content inside container if title not provided', () => {