diff --git a/package.json b/package.json
index 1541cfe..65e6c50 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "react-notification",
- "version": "5.0.5",
+ "version": "5.0.6",
"description": "Snackbar style notification component for React.",
"main": "dist/index.js",
"scripts": {
diff --git a/src/notification.js b/src/notification.js
index fabe30c..2199d09 100644
--- a/src/notification.js
+++ b/src/notification.js
@@ -15,7 +15,10 @@ class Notification extends Component {
if (!nextProps.hasOwnProperty('isLast'))
clearTimeout(this.dismissTimeout);
if (nextProps.onDismiss && nextProps.isActive && !this.props.isActive) {
- this.dismissTimeout = setTimeout(nextProps.onDismiss, nextProps.dismissAfter);
+ this.dismissTimeout = setTimeout(
+ nextProps.onDismiss,
+ nextProps.dismissAfter
+ );
}
}
diff --git a/test/notification.js b/test/notification.js
index 7c6a681..219d3d2 100644
--- a/test/notification.js
+++ b/test/notification.js
@@ -126,7 +126,7 @@ describe('', () => {
onDismiss={handleDismiss}
/>
);
-
+
expect(handleDismiss.calledOnce).to.equal(false);
wrapper.setProps({ isActive: true });
setTimeout(() => {
@@ -149,7 +149,7 @@ describe('', () => {
onDismiss={handleDismiss}
/>
);
-
+
wrapper.setProps({ isActive: true });
setTimeout(() => {
try {
diff --git a/test/notificationStack.js b/test/notificationStack.js
index e755a9b..9c70fa0 100644
--- a/test/notificationStack.js
+++ b/test/notificationStack.js
@@ -20,7 +20,7 @@ describe('', () => {
onDismiss={handleDismiss}
/>
);
-
+
wrapper.update();
setTimeout(() => {
try {
@@ -42,7 +42,7 @@ describe('', () => {
onDismiss={handleDismiss}
/>
);
-
+
wrapper.update();
setTimeout(() => {
try {
@@ -51,7 +51,7 @@ describe('', () => {
} catch (e) {
done(e);
}
- // Add transition time + 1000ms per each Notification
+ // Add transition time + 1000ms per each Notification
}, mockNotification.dismissAfter + 1340);
});