From e124cabc5b677868c09a1f29a4ebe5cc9688521f Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 2 Jun 2018 13:18:11 +0800 Subject: [PATCH] update badge snapshot test --- components/badge/__tests__/__snapshots__/index.test.js.snap | 3 ++- components/badge/__tests__/index.test.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/components/badge/__tests__/__snapshots__/index.test.js.snap b/components/badge/__tests__/__snapshots__/index.test.js.snap index c0c765c740..657fe94054 100644 --- a/components/badge/__tests__/__snapshots__/index.test.js.snap +++ b/components/badge/__tests__/__snapshots__/index.test.js.snap @@ -7,11 +7,12 @@ exports[`Badge should be compatible with borderColor style 1`] = `

{ }); it('should be compatible with borderColor style', () => { - const wrapper = mount(); - expect(wrapper.render()).toMatchSnapshot(); + const wrapper = render(); + expect(wrapper).toMatchSnapshot(); }); });