mirror of
https://github.com/strapi/strapi.git
synced 2025-08-16 20:57:34 +00:00
16 lines
341 B
JavaScript
16 lines
341 B
JavaScript
![]() |
const {
|
||
|
isSortable,
|
||
|
// isEditable,
|
||
|
// hasEditableAttribute,
|
||
|
// hasListableAttribute,
|
||
|
// hasRelationAttribute,
|
||
|
} = require('../attributes');
|
||
|
|
||
|
describe('attributesUtils', () => {
|
||
|
describe('isSortable', () => {
|
||
|
test('The id attribute is always sortable', () => {
|
||
|
expect(isSortable({}, 'id')).toBe(true);
|
||
|
});
|
||
|
});
|
||
|
});
|