Skip to content

Commit d43054f

Browse files
committed
[timeseries.js][s]: lint formatting
1 parent 77bddc4 commit d43054f

1 file changed

Lines changed: 49 additions & 49 deletions

File tree

danfojs/tests/core/timeseries.js

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,90 @@
1-
import { assert } from "chai"
2-
import { to_datetime } from '../../src/core/timeseries'
1+
import { assert } from "chai";
2+
import { to_datetime } from '../../src/core/timeseries';
33

44
describe("TimeSeries", function () {
55

6-
it("Check date formatting", function () {
6+
it("Check date formatting", function () {
77

8-
let data = ["02Sep2019", "03Sep2019", "04Sep2019"]
8+
let data = [ "02Sep2019", "03Sep2019", "04Sep2019" ];
99

10-
let times = to_datetime({ "data": data, "format": "%d%b%Y%" })
10+
let times = to_datetime({ "data": data, "format": "%d%b%Y%" });
1111

12-
let new_data = [new Date("02-Sep-2019"), new Date("03-Sep-2019"), new Date("04-Sep-2019")]
12+
let new_data = [ new Date("02-Sep-2019"), new Date("03-Sep-2019"), new Date("04-Sep-2019") ];
1313

14-
assert.deepEqual(times.date_list, new_data);
14+
assert.deepEqual(times.date_list, new_data);
1515

16-
});
16+
});
1717

18-
it("Check Invalid date Formatting", function () {
18+
it("Check Invalid date Formatting", function () {
1919

20-
let data = ["30-06-02019", "29-06-2019", "28-06-2019"]
20+
let data = [ "30-06-02019", "29-06-2019", "28-06-2019" ];
2121

22-
assert.throws(function () { to_datetime({ "data": data }) }, Error, "Invalid date, the date format not recognise");;
22+
assert.throws(function () { to_datetime({ "data": data }); }, Error, "Invalid date, the date format not recognise");
2323

24-
});
24+
});
2525

26-
it("check month generated", function () {
26+
it("check month generated", function () {
2727

28-
let data = ["02Sep2019", "03Dec2019", "04Jan2019"]
28+
let data = [ "02Sep2019", "03Dec2019", "04Jan2019" ];
2929

30-
let times = to_datetime({ "data": data, "format": "%d%b%Y%" })
30+
let times = to_datetime({ "data": data, "format": "%d%b%Y%" });
3131

32-
let new_data = [8, 11, 0]
32+
let new_data = [ 8, 11, 0 ];
3333

34-
assert.deepEqual(times.month().values, new_data);
35-
});
34+
assert.deepEqual(times.month().values, new_data);
35+
});
3636

37-
it("check month Name generated", function () {
37+
it("check month Name generated", function () {
3838

39-
let data = ["06-30-02019", "07-29-2019", "08-28-2019"]
39+
let data = [ "06-30-02019", "07-29-2019", "08-28-2019" ];
4040

41-
let times = to_datetime({ "data": data })
41+
let times = to_datetime({ "data": data });
4242

43-
let new_data = ["Jun", "Jul", "Aug"]
43+
let new_data = [ "Jun", "Jul", "Aug" ];
4444

45-
assert.deepEqual(times.month_name().values, new_data);
46-
});
45+
assert.deepEqual(times.month_name().values, new_data);
46+
});
4747

48-
it("check days of the weeks generated", function () {
48+
it("check days of the weeks generated", function () {
4949

50-
let data = ["06-30-02019", "07-29-2019", "08-28-2019"]
50+
let data = [ "06-30-02019", "07-29-2019", "08-28-2019" ];
5151

52-
let times = to_datetime({ "data": data })
52+
let times = to_datetime({ "data": data });
5353

54-
let new_data = ["Sun", "Mon", "Wed"]
54+
let new_data = [ "Sun", "Mon", "Wed" ];
5555

56-
assert.deepEqual(times.weekdays().values, new_data);
57-
});
56+
assert.deepEqual(times.weekdays().values, new_data);
57+
});
5858

59-
it("check day of the month generated", function () {
59+
it("check day of the month generated", function () {
6060

61-
let data = ["06-30-02019", "07-29-2019", "08-28-2019"]
61+
let data = [ "06-30-02019", "07-29-2019", "08-28-2019" ];
6262

63-
let times = to_datetime({ "data": data })
63+
let times = to_datetime({ "data": data });
6464

65-
let new_data = [30, 29, 28]
65+
let new_data = [ 30, 29, 28 ];
6666

67-
assert.deepEqual(times.monthday().values, new_data);
68-
});
69-
it("check the seconds generated", function () {
67+
assert.deepEqual(times.monthday().values, new_data);
68+
});
69+
it("check the seconds generated", function () {
7070

71-
let data = ["06-30-02019 00:00:12", "07-29-2019 00:30:40", "08-28-2019 00:12:04"]
71+
let data = [ "06-30-02019 00:00:12", "07-29-2019 00:30:40", "08-28-2019 00:12:04" ];
7272

73-
let times = to_datetime({ "data": data })
73+
let times = to_datetime({ "data": data });
7474

75-
let new_data = [12, 40, 4]
75+
let new_data = [ 12, 40, 4 ];
7676

77-
assert.deepEqual(times.seconds().values, new_data);
78-
});
79-
it("check the minutes generated", function () {
77+
assert.deepEqual(times.seconds().values, new_data);
78+
});
79+
it("check the minutes generated", function () {
8080

81-
let data = ["06-30-02019 00:00:12", "07-29-2019 00:30:40", "08-28-2019 00:12:04"]
81+
let data = [ "06-30-02019 00:00:12", "07-29-2019 00:30:40", "08-28-2019 00:12:04" ];
8282

83-
let times = to_datetime({ "data": data })
83+
let times = to_datetime({ "data": data });
8484

85-
let new_data = [0, 30, 12]
85+
let new_data = [ 0, 30, 12 ];
8686

87-
assert.deepEqual(times.minutes().values, new_data);
88-
});
87+
assert.deepEqual(times.minutes().values, new_data);
88+
});
8989

90-
});
90+
});

0 commit comments

Comments
 (0)