Skip to content
This repository was archived by the owner on Nov 16, 2018. It is now read-only.

Commit 261b1e2

Browse files
committed
Adds jest as a eslint global + lint
1 parent d444aef commit 261b1e2

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

Diff for: jestEnvironment.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
require.requireActual('babel/polyfill')
1+
require.requireActual("babel/polyfill");
22

Diff for: src/__tests__/.eslintrc

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"env": {
33
"jasmine": true
44
},
5+
"globals": {
6+
"jest": false
7+
},
58
plugins: [
69
"jasmine"
710
]

Diff for: src/__tests__/DateTimePickerMonths-test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ describe("DateTimePickerMonths", function() {
5151
});
5252
});
5353

54-
describe('UI', function() {
55-
it('renders 12 months', function() {
54+
describe("UI", function() {
55+
it("renders 12 months", function() {
5656
const monthList = TestUtils.scryRenderedDOMComponentsWithClass(months, "month");
5757
expect(monthList.length).toBe(12);
5858
});
5959

60-
it('rendersJanuary through December', function() {
60+
it("rendersJanuary through December", function() {
6161
const monthList = TestUtils.scryRenderedDOMComponentsWithClass(months, "month");
62-
expect(monthList.map((x) => x.props.children)).toEqual(['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ]);
62+
expect(monthList.map((x) => x.props.children)).toEqual(["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]);
6363
});
6464

6565
it("has an active month that is now's month", function() {
@@ -75,7 +75,7 @@ describe("DateTimePickerMonths", function() {
7575
setViewMonth={setViewMonthMock}
7676
showYears={showYearsMock}
7777
subtractYear={subtractYearMock}
78-
viewDate={moment().add(2, 'year')}
78+
viewDate={moment().add(2, "year")}
7979
/>
8080
);
8181
const active = TestUtils.scryRenderedDOMComponentsWithClass(months, "active");

0 commit comments

Comments
 (0)