We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 987809a commit a5d6a42Copy full SHA for a5d6a42
src/danfojs-browser/tests/core/datetime.test.js
@@ -92,12 +92,19 @@ describe("TimeSeries", function () {
92
it("Returns date string in standard JS format", function () {
93
const data = [ "02Sep2019", "03Aug2019", "04July2019" ];
94
const dateTime = dfd.toDateTime(data);
95
- const expected = [ "2019-09-02", "2019-08-03", "2019-07-04" ];
+ const expected = [
96
+ '9/2/2019, 12:00:00 AM',
97
+ '8/3/2019, 12:00:00 AM',
98
+ '7/4/2019, 12:00:00 AM'
99
+ ];
100
- const data2 = new Series([ "12.30.19", "12.22.19", "11.01.20" ]);
101
+ const data2 = new dfd.Series([ "12.30.19", "12.22.19", "11.01.20" ]);
102
const dateTime2 = dfd.toDateTime(data2);
- const expected2 = [ "2019-12-30", "2019-12-22", "2020-11-01" ];
-
103
+ const expected2 = [
104
+ '12/30/2019, 12:00:00 AM',
105
+ '12/22/2019, 12:00:00 AM',
106
+ '11/1/2020, 12:00:00 AM'
107
108
assert.deepEqual(dateTime.date().values, expected);
109
assert.deepEqual(dateTime2.date().values, expected2);
110
});
0 commit comments