Skip to content

Commit 9a7b261

Browse files
committed
Remove unecessary comments
1 parent f5d8406 commit 9a7b261

4 files changed

+11
-17
lines changed

packages/expect/src/__tests__/matchers-toContain.property.test.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ describe('toContain', () => {
2020
fc.array(fc.anything(anythingSettings)),
2121
fc.anything(anythingSettings).filter(v => !Number.isNaN(v)),
2222
(startValues, endValues, v) => {
23-
// Given: startValues, endValues arrays and v value (not NaN)
24-
// Assert: We expect `expect([...startValues, v, ...endValues]).toContain(v)`
23+
// Given: startValues, endValues arrays and v value (not NaN)
2524
expect([...startValues, v, ...endValues]).toContain(v);
2625
},
2726
),
@@ -36,10 +35,9 @@ describe('toContain', () => {
3635
fc.array(fc.anything(anythingSettings)),
3736
fc.dedup(fc.anything(anythingSettings), 2),
3837
(startValues, endValues, [a, b]) => {
39-
// Given: startValues, endValues arrays
40-
// and [a, b] equal, but not the same values
41-
// with `typeof a === 'object && a !== null`
42-
// Assert: We expect `expect([...startValues, a, ...endValues]).not.toContain(b)`
38+
// Given: startValues, endValues arrays
39+
// and [a, b] equal, but not the same values
40+
// with `typeof a === 'object && a !== null`
4341
fc.pre(typeof a === 'object' && a !== null);
4442
expect([...startValues, a, ...endValues]).not.toContain(b);
4543
},

packages/expect/src/__tests__/matchers-toContainEqual.property.test.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ describe('toContainEqual', () => {
2020
fc.array(fc.anything(anythingSettings)),
2121
fc.anything(anythingSettings),
2222
(startValues, endValues, v) => {
23-
// Given: startValues, endValues arrays and v any value
24-
// Assert: We expect `expect([...startValues, v, ...endValues]).toContainEqual(v)`
23+
// Given: startValues, endValues arrays and v any value
2524
expect([...startValues, v, ...endValues]).toContainEqual(v);
2625
},
2726
),
@@ -36,9 +35,8 @@ describe('toContainEqual', () => {
3635
fc.array(fc.anything(anythingSettings)),
3736
fc.dedup(fc.anything(anythingSettings), 2),
3837
(startValues, endValues, [a, b]) => {
39-
// Given: startValues, endValues arrays
40-
// and [a, b] identical values
41-
// Assert: We expect `expect([...startValues, a, ...endValues]).toContainEqual(b)`
38+
// Given: startValues, endValues arrays
39+
// and [a, b] identical values
4240
expect([...startValues, a, ...endValues]).toContainEqual(b);
4341
},
4442
),

packages/expect/src/__tests__/matchers-toEqual.property.test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ describe('toEqual', () => {
1616
it('should be reflexive', () => {
1717
fc.assert(
1818
fc.property(fc.dedup(fc.anything(anythingSettings), 2), ([a, b]) => {
19-
// Given: a and b identical values
20-
// Assert: We expect `expect(a).toEqual(b)`
19+
// Given: a and b identical values
2120
expect(a).toEqual(b);
2221
}),
2322
assertSettings,
@@ -38,7 +37,7 @@ describe('toEqual', () => {
3837
fc.anything(anythingSettings),
3938
fc.anything(anythingSettings),
4039
(a, b) => {
41-
// Given: a and b values
40+
// Given: a and b values
4241
// Assert: We expect `expect(a).toEqual(b)`
4342
// to be equivalent to `expect(b).toEqual(a)`
4443
expect(safeExpectEqual(a, b)).toBe(safeExpectEqual(b, a));

packages/expect/src/__tests__/matchers-toStrictEqual.property.test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ describe('toStrictEqual', () => {
1616
it('should be reflexive', () => {
1717
fc.assert(
1818
fc.property(fc.dedup(fc.anything(anythingSettings), 2), ([a, b]) => {
19-
// Given: a and b identical values
20-
// Assert: We expect `expect(a).toStrictEqual(b)`
19+
// Given: a and b identical values
2120
expect(a).toStrictEqual(b);
2221
}),
2322
assertSettings,
@@ -27,7 +26,7 @@ describe('toStrictEqual', () => {
2726
it('should be symmetric', () => {
2827
const safeExpectStrictEqual = (a, b) => {
2928
try {
30-
expect(a).toEqual(b);
29+
expect(a).toStrictEqual(b);
3130
return true;
3231
} catch (err) {
3332
return false;

0 commit comments

Comments
 (0)