From 7c6792c135fbcd5f4140c1c6416a2ed14d74e610 Mon Sep 17 00:00:00 2001
From: Simon Egersand <s.egersand@gmail.com>
Date: Sun, 11 Feb 2018 09:56:37 +0100
Subject: [PATCH] Fix failing test by using shallow instead of mount

---
 test/testUtils.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/test/testUtils.js b/test/testUtils.js
index da83a23..e09d16f 100644
--- a/test/testUtils.js
+++ b/test/testUtils.js
@@ -1,5 +1,5 @@
 import React from 'react'; // eslint-disable-line no-unused-vars
-import { mount } from 'enzyme';
+import { mount, shallow } from 'enzyme';
 import Datetime from '../DateTime'; // eslint-disable-line no-unused-vars
 
 const simulateClickOnElement = (element) => {
@@ -16,6 +16,10 @@
 		return mount(<Datetime {...props} />);
 	},
 
+	createDatetimeShallow: (props) => {
+		return shallow(<Datetime {...props} />);
+	},
+
 	/*
 	 * Click Simulations
 	 */

--
Gitblit v1.9.3