Skip to content

Commit b3ca520

Browse files
leecalcoteleecalcote
authored andcommitted
Update schema
Signed-off-by: leecalcote <lee@toones.io>
1 parent 2425b90 commit b3ca520

File tree

6 files changed

+24
-17
lines changed

6 files changed

+24
-17
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sistent/mui-datatables",
3-
"version": "5.1.1",
3+
"version": "5.1.3",
44
"description": "Datatables for React using Material-UI",
55
"main": "dist/index.js",
66
"files": [

test/MUIDataTable.test.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ describe('<MUIDataTable />', function() {
707707
};
708708
const fullWrapper = mount(<MUIDataTable columns={columns} data={data} options={options} />);
709709

710-
const clickSortButton = (index) => {
710+
const clickSortButton = index => {
711711
const btn = fullWrapper.find(`[data-testid="headcol-${index}"]`).at(0);
712712
btn.prop('onClick')({ preventDefault: () => {} });
713713
fullWrapper.update();
@@ -736,7 +736,7 @@ describe('<MUIDataTable />', function() {
736736
};
737737
const fullWrapper = mount(<MUIDataTable columns={columns} data={data} options={options} />);
738738

739-
const clickPaginationButton = (id) => {
739+
const clickPaginationButton = id => {
740740
const btn = fullWrapper.find(id).at(0);
741741
if (btn.prop('onClick')) {
742742
btn.prop('onClick')({ preventDefault: () => {} });
@@ -1975,9 +1975,11 @@ describe('<MUIDataTable />', function() {
19751975
expandableRowsOnClick: true,
19761976
onRowExpansionChange: spy(),
19771977
};
1978-
const shallowWrapper = shallow(<MUIDataTable columns={columns} data={data} options={options} tableId={tableId} />).dive();
1978+
const shallowWrapper = shallow(
1979+
<MUIDataTable columns={columns} data={data} options={options} tableId={tableId} />,
1980+
).dive();
19791981
const instance = shallowWrapper.instance();
1980-
1982+
19811983
// Simulate row expansion via the toggle method
19821984
instance.toggleExpandRow({ index: 2, dataIndex: 2 });
19831985
shallowWrapper.update();
@@ -1999,9 +2001,11 @@ describe('<MUIDataTable />', function() {
19992001
selectableRowsOnClick: true,
20002002
onRowSelectionChange: spy(),
20012003
};
2002-
const shallowWrapper = shallow(<MUIDataTable columns={columns} data={data} options={options} tableId={tableId} />).dive();
2004+
const shallowWrapper = shallow(
2005+
<MUIDataTable columns={columns} data={data} options={options} tableId={tableId} />,
2006+
).dive();
20032007
const instance = shallowWrapper.instance();
2004-
2008+
20052009
// Simulate row selection via selectRowUpdate
20062010
instance.selectRowUpdate('cell', { index: 2, dataIndex: 2 });
20072011
shallowWrapper.update();
@@ -2395,7 +2399,7 @@ describe('<MUIDataTable />', function() {
23952399

23962400
const shallowWrapper = shallow(<MUIDataTable columns={testColumns} data={data} options={options} />).dive();
23972401
const instance = shallowWrapper.instance();
2398-
2402+
23992403
// Use the instance method to filter directly
24002404
instance.filterUpdate(0, 'James', 'Name', 'textField');
24012405
shallowWrapper.update();

test/MUIDataTableHeadCell.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ describe('<TableHeadCell />', function() {
133133
if (btn.length > 0 && btn.prop('onClick')) {
134134
btn.prop('onClick')({ preventDefault: () => {} });
135135
} else {
136-
const instance = wrapper.find('td').at(0).childAt(0);
136+
const instance = wrapper
137+
.find('td')
138+
.at(0)
139+
.childAt(0);
137140
instance.simulate('click');
138141
}
139142
wrapper.update();

test/babel-register.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ require('@babel/register')({
77
'@babel/preset-env',
88
{
99
targets: { node: 'current' },
10-
modules: 'commonjs'
11-
}
10+
modules: 'commonjs',
11+
},
1212
],
13-
'@babel/preset-react'
13+
'@babel/preset-react',
1414
],
1515
plugins: [
1616
'@babel/plugin-proposal-class-properties',
1717
'@babel/plugin-proposal-object-rest-spread',
1818
'@babel/plugin-transform-async-to-generator',
19-
['@babel/plugin-transform-runtime', { corejs: 3, regenerator: true }]
19+
['@babel/plugin-transform-runtime', { corejs: 3, regenerator: true }],
2020
],
21-
ignore: [/node_modules/]
21+
ignore: [/node_modules/],
2222
});
2323

2424
require('./setup-mocha-env');

test/setup-mocha-env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function setupDom() {
1212
const Node = require('jsdom/lib/jsdom/living/node-document-position');
1313

1414
const dom = new JSDOM('<!doctype html><html><body></body></html>', {
15-
url: 'http://localhost'
15+
url: 'http://localhost',
1616
});
1717

1818
global.window = dom.window;

0 commit comments

Comments
 (0)