Skip to content

Commit a213a88

Browse files
committed
refactor: adjust and align test wording
1 parent 6110194 commit a213a88

5 files changed

Lines changed: 80 additions & 80 deletions

File tree

‎test/analyze.test.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ describe('Selector—likely disjoint', () => {
130130
assert.strictEqual(selectorsLikelyDisjoint('.a', 'div'), false);
131131
});
132132

133-
test('Only the subject compound counts, not ancestor compounds', () => {
133+
test('Counts only the subject compound, not ancestor compounds', () => {
134134
// Both selectors’ subjects are `p`—the differing ancestors don’t make
135135
// them disjoint (the same `p` can sit inside both wrappers)
136136
assert.strictEqual(selectorsLikelyDisjoint('.x p', '.y p'), false);
@@ -500,7 +500,7 @@ describe('Analysis', () => {
500500
assert.strictEqual(findings.length, 0);
501501
});
502502

503-
test('`ignoreSelectorsDefaults: false` disables the built-in hack list', () => {
503+
test('Disables the built-in hack list with `ignoreSelectorsDefaults: false`', () => {
504504
const { findings } = analyze('.a { color: red; } * html .b { color: red; }', {
505505
ignoreSelectorsDefaults: false,
506506
});

0 commit comments

Comments
 (0)