vuetable-2
Advanced tools
Comparing version 2.0.0-alpha.17 to 2.0.0-alpha.19
{ | ||
"name": "vuetable-2", | ||
"version": "2.0.0-alpha.17", | ||
"version": "2.0.0-alpha.19", | ||
"description": "Datatable component for Vue 2.x", | ||
@@ -5,0 +5,0 @@ "main": "dist/vuetable-2.js", |
@@ -12,4 +12,3 @@ export default { | ||
descendingClass: 'sorted-desc', | ||
sortableIcon: 'sort icon', | ||
detailRowClass: 'vuetable-detail-row', | ||
sortableIcon: 'grey sort icon', | ||
handleIcon: 'grey sidebar icon', | ||
@@ -16,0 +15,0 @@ }, |
@@ -298,2 +298,30 @@ import Vue from 'vue' | ||
describe('getDefaultSortParam', () => { | ||
const mountVuetable = (sortOrder) => shallow(Vuetable, { | ||
propsData: { | ||
apiMode: false, | ||
fields: ['code'], | ||
sortOrder | ||
} | ||
}) | ||
it('returns single sortOrder into sort params', () => { | ||
let wrapper = mountVuetable([ | ||
{ field: 'code', sortField: 'code', direction: 'asc' }, | ||
]) | ||
expect(wrapper.vm.getDefaultSortParam()).toEqual('code|asc') | ||
}) | ||
it('returns consolidated multiple sortOrder into sort param', () => { | ||
let wrapper = mountVuetable([ | ||
{ field: 'code', sortField: 'code', direction: 'asc' }, | ||
{ field: 'group.description', sortField: 'group_id', direction: 'desc' } | ||
]) | ||
expect(wrapper.vm.getDefaultSortParam()).toEqual('code|asc,group_id|desc') | ||
}) | ||
}) | ||
describe('getObjectValue', () => { | ||
@@ -300,0 +328,0 @@ let obj = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2795559
8936