Skip to content

Commit ccf57c9

Browse files
♻️ refactor(test): Use list() for character arrays.
1 parent 46edbf8 commit ccf57c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/src/api/sorted.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,18 @@ test('Triangle after edge', (t) => {
127127

128128
test('README example #1', (t) => {
129129
const edges = ['ab', 'bc'];
130-
const expected = ['a', 'b', 'c'];
130+
const expected = list('abc');
131131
t.deepEqual([...sorted(edges)], expected);
132132
});
133133

134134
test('README example #2', (t) => {
135135
const edges = ['ab', 'cd'];
136-
const expected = ['a', 'b', 'c', 'd'];
136+
const expected = list('abcd');
137137
t.deepEqual([...sorted(edges, increasing)], expected);
138138
});
139139

140140
test('README example #3', (t) => {
141141
const edges = ['ab', 'cd'];
142-
const expected = ['c', 'd', 'a', 'b'];
142+
const expected = list('cdab');
143143
t.deepEqual([...sorted(edges, decreasing)], expected);
144144
});

0 commit comments

Comments
 (0)