Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vuetable-2

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuetable-2 - npm Package Compare versions

Comparing version 2.0.0-alpha.17 to 2.0.0-alpha.19

dist/static/js/app.90b408a4eed920233bda.js

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc