Skip to content

Commit 65889dd

Browse files
committed
Fix typo.
1 parent 7a6cff1 commit 65889dd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/service-core/test/src/util.test.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('utils', () => {
2424
testInstersection(new Set([]), new Set([]), false);
2525
});
2626

27-
function testGetInstersection(a: Set<any>, b: Set<any>, expected: any[]) {
27+
function testGetIntersection(a: Set<any>, b: Set<any>, expected: any[]) {
2828
expect([...getIntersection(a, b)]).toEqual(expected);
2929
expect([...getIntersection(b, a)]).toEqual(expected);
3030
const mapA = new Map([...a].map((v) => [v, 1]));
@@ -35,14 +35,14 @@ describe('utils', () => {
3535
}
3636

3737
test('getIntersection', async () => {
38-
testGetInstersection(new Set(['a']), new Set(['a']), ['a']);
39-
testGetInstersection(new Set(['a', 'b', 'c']), new Set(['a', 'b', 'c']), ['a', 'b', 'c']);
40-
testGetInstersection(new Set(['a', 'b', 'c']), new Set(['d', 'e']), []);
41-
testGetInstersection(new Set(['a', 'b', 'c']), new Set(['d', 'c', 'e']), ['c']);
42-
testGetInstersection(new Set(['a', 'b', 'c']), new Set(['c', 'e']), ['c']);
43-
testGetInstersection(new Set(['a', 'b', 'c', 2]), new Set([1, 2, 3]), [2]);
44-
testGetInstersection(new Set(['a', 'b', 'c', 4]), new Set([1, 2, 3]), []);
45-
testGetInstersection(new Set([]), new Set([1, 2, 3]), []);
46-
testGetInstersection(new Set([]), new Set([]), []);
38+
testGetIntersection(new Set(['a']), new Set(['a']), ['a']);
39+
testGetIntersection(new Set(['a', 'b', 'c']), new Set(['a', 'b', 'c']), ['a', 'b', 'c']);
40+
testGetIntersection(new Set(['a', 'b', 'c']), new Set(['d', 'e']), []);
41+
testGetIntersection(new Set(['a', 'b', 'c']), new Set(['d', 'c', 'e']), ['c']);
42+
testGetIntersection(new Set(['a', 'b', 'c']), new Set(['c', 'e']), ['c']);
43+
testGetIntersection(new Set(['a', 'b', 'c', 2]), new Set([1, 2, 3]), [2]);
44+
testGetIntersection(new Set(['a', 'b', 'c', 4]), new Set([1, 2, 3]), []);
45+
testGetIntersection(new Set([]), new Set([1, 2, 3]), []);
46+
testGetIntersection(new Set([]), new Set([]), []);
4747
});
4848
});

0 commit comments

Comments
 (0)