master
Frédéric Matte 2023-09-28 23:13:20 -04:00
parent 4399839883
commit df851affda
1 changed files with 0 additions and 4 deletions

View File

@ -13,7 +13,6 @@ const data = [
test('sort by name ascending', () => {
const result = data.sort(sortby(['name']))
equal(result, [
{ age: 40, name: "Persone 1", new: true },
{ age: 17, name: "Persone 2", new: false },
@ -23,7 +22,6 @@ test('sort by name ascending', () => {
test('sort by age ascending', () => {
const result = data.sort(sortby(['age']))
equal(result, [
{ age: 17, name: "Persone 2", new: false },
{ age: 40, name: "Persone 1", new: true },
@ -33,7 +31,6 @@ test('sort by age ascending', () => {
test('sort by age descending', () => {
const result = data.sort(sortby(['age', 'desc']))
equal(result, [
{ age: 40, name: "Persone 1", new: true },
{ age: 17, name: "Persone 2", new: false },
@ -43,7 +40,6 @@ test('sort by age descending', () => {
test('sort by new descending', () => {
const result = data.sort(sortby(['new', 'desc']))
equal(result, [
{ age: 40, name: "Persone 1", new: true },
{ age: 17, name: "Persone 2", new: false },