mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 06:13:54 +00:00
Merge "Hygiene: replace deepEqual tests with propEqual"
This commit is contained in:
commit
42238a6be5
|
@ -99,22 +99,22 @@
|
||||||
MEDIUM_ISSUE
|
MEDIUM_ISSUE
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
assert.deepEqual(
|
assert.propEqual(
|
||||||
getAllIssuesSections( allIssuesOldTreatment ),
|
getAllIssuesSections( allIssuesOldTreatment ),
|
||||||
[ '0', '0', '0' ],
|
[ '0', '0', '0' ],
|
||||||
'section numbers correctly extracted from old treatment'
|
'section numbers correctly extracted from old treatment'
|
||||||
);
|
);
|
||||||
assert.deepEqual(
|
assert.propEqual(
|
||||||
getAllIssuesSections( allIssuesNewTreatment ),
|
getAllIssuesSections( allIssuesNewTreatment ),
|
||||||
[ '0', '0', '0', '1' ],
|
[ '0', '0', '0', '1' ],
|
||||||
'section numbers correctly extracted from new treatment'
|
'section numbers correctly extracted from new treatment'
|
||||||
);
|
);
|
||||||
assert.deepEqual(
|
assert.propEqual(
|
||||||
getAllIssuesSections( multipleIssues ),
|
getAllIssuesSections( multipleIssues ),
|
||||||
[ '0' ],
|
[ '0' ],
|
||||||
'multiple issues are packed into one entry since there is one box'
|
'multiple issues are packed into one entry since there is one box'
|
||||||
);
|
);
|
||||||
assert.deepEqual(
|
assert.propEqual(
|
||||||
getAllIssuesSections( multipleIssuesWithDeletion ),
|
getAllIssuesSections( multipleIssuesWithDeletion ),
|
||||||
[ '0', '0' ],
|
[ '0', '0' ],
|
||||||
'while multiple issues are grouped, non-multiple issues are still reported'
|
'while multiple issues are grouped, non-multiple issues are still reported'
|
||||||
|
|
Loading…
Reference in a new issue