We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46edbf8 commit ccf57c9Copy full SHA for ccf57c9
test/src/api/sorted.js
@@ -127,18 +127,18 @@ test('Triangle after edge', (t) => {
127
128
test('README example #1', (t) => {
129
const edges = ['ab', 'bc'];
130
- const expected = ['a', 'b', 'c'];
+ const expected = list('abc');
131
t.deepEqual([...sorted(edges)], expected);
132
});
133
134
test('README example #2', (t) => {
135
const edges = ['ab', 'cd'];
136
- const expected = ['a', 'b', 'c', 'd'];
+ const expected = list('abcd');
137
t.deepEqual([...sorted(edges, increasing)], expected);
138
139
140
test('README example #3', (t) => {
141
142
- const expected = ['c', 'd', 'a', 'b'];
+ const expected = list('cdab');
143
t.deepEqual([...sorted(edges, decreasing)], expected);
144
0 commit comments