Files
coopgo/node_modules/sort-desc/test.js
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

19 lines
451 B
JavaScript

/*!
* sort-desc <https://github.com/jonschlinkert/sort-desc>
*
* Copyright (c) 2014 Jon Schlinkert, contributors.
* Licensed under the MIT License
*/
'use strict';
var assert = require('assert');
var sortDesc = require('./');
describe('sort object', function () {
it('should sort keys in descending order.', function () {
var actual = (['d', 'c', 'b', 'a']).sort(sortDesc);
assert.deepEqual(actual, ['a', 'b', 'c', 'd'] );
});
});