Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix lint errors

Benjamin King10ac29e6cab5
diff --git a/web/css/alert.css b/web/css/alert.css
index e20643d3f..702bc1c8e 100644
--- a/web/css/alert.css
+++ b/web/css/alert.css
@@ -5,7 +5,7 @@
min-height: 40px;
cursor: pointer;
padding: 0;
- border: none
+ border: none;
}
.wv-alert div {
display: inline-block;
@@ -13,14 +13,13 @@
}
.wv-alert div:hover {
display: inline-block;
- background: #dddddd;
- color: #333333;
+ background-color: #ddd;
+ color: #333;
}
.wv-alert i {
color: #d54e21;
margin-right: 10px;
font-size: 1.4em;
-
}
.wv-alert i.exit {
color: #fff;
@@ -28,5 +27,5 @@
font-size: 1.4em;
}
.wv-alert div:hover .exit {
- color: #333333;
-}
\ No newline at end of file
+ color: #333;
+}
diff --git a/web/js/modules/animation/reducer.test.js b/web/js/modules/animation/reducer.test.js
new file mode 100644
index 000000000..d6209b095
--- /dev/null
+++ b/web/js/modules/animation/reducer.test.js
@@ -0,0 +1,15 @@
+import { defaultState, animationReducer } from './reducers';
+import * as CONSTANTS from './constants';
+import util from '../../util/util';
+const now = new Date();
+const then = util.dateAdd(now, 'day', -7);
+
+test('OPEN_ANIMATION action updates start and end s', () => {
+ const response = animationReducer(defaultState, {
+ type: CONSTANTS.OPEN_ANIMATION,
+ date: now
+ });
+ expect(response.startDate).toEqual(then);
+ expect(response.endDate).toEqual(now);
+ expect(response.isActive).toEqual(true);
+});