You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
445 B
19 lines
445 B
/*!
|
|
* sort-asc <https://github.com/jonschlinkert/sort-asc>
|
|
*
|
|
* Copyright (c) 2014 Jon Schlinkert, contributors.
|
|
* Licensed under the MIT License
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var assert = require('assert');
|
|
var sortAsc = require('./');
|
|
|
|
describe('sort object', function () {
|
|
it('should sort keys in ascending order.', function () {
|
|
var actual = (['a', 'b', 'c', 'd']).sort(sortAsc);
|
|
assert.deepEqual(actual, ['d', 'c', 'b', 'a']);
|
|
});
|
|
});
|