Skip to content

Commit 12f79d3

Browse files
committed
Apply lint fix
1 parent 5724594 commit 12f79d3

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

src/danfojs-browser/tests/core/frame.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,10 @@ describe("DataFrame", function () {
124124
const df = new dfd.DataFrame(data);
125125

126126
assert.throws(
127-
() => df.addColumn("new_column", new dfd.Series([ "a", "b", "c" ])), Error,
128-
'ParamError: Column data length mismatch. You provided data with length 3 but Ndframe has column of length 4');
127+
() => df.addColumn("new_column", new dfd.Series([ "a", "b", "c" ])),
128+
Error,
129+
'ParamError: Column data length mismatch. You provided data with length 3 but Ndframe has column of length 4'
130+
);
129131

130132
});
131133
it("Ensure add column does not mutate parent when not in place", function () {

src/danfojs-browser/tests/core/generic.test.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,19 @@ describe("Generic (NDFrame)", function () {
6060
it("Throws error on duplicate column name", function () {
6161
let data = [ [ 21, 20, 1 ], [ 20, 25, 3 ] ];
6262
assert.throws(
63-
() => new dfd.NDframe({ data, isSeries: false, columns: [ "A", "A", "C" ] }), Error,
64-
"ColumnIndexError: Column index must contain unique values");
63+
() => new dfd.NDframe({ data, isSeries: false, columns: [ "A", "A", "C" ] }),
64+
Error,
65+
"ColumnIndexError: Column index must contain unique values"
66+
);
6567
});
6668

6769
it("Throws error on duplicate index", function () {
6870
let data = [ [ 21, 20, 1 ], [ 20, 25, 3 ], [ 19, 30, 5 ] ];
6971
assert.throws(
70-
() => new dfd.NDframe({ data, isSeries: false, index: [ 1, 1, 2 ] }), Error,
71-
"IndexError: Row index must contain unique values");
72+
() => new dfd.NDframe({ data, isSeries: false, index: [ 1, 1, 2 ] }),
73+
Error,
74+
"IndexError: Row index must contain unique values"
75+
);
7276
});
7377

7478
it("Successfully create a 2D Frame when first value is empty", function () {

0 commit comments

Comments
 (0)