Skip to content

Commit 6a33f04

Browse files
committed
test(newest,oldest): describe test cases without hardcoding versions in comments
1 parent 039d30a commit 6a33f04

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎newest/test/test.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('check v10', async () => {
3636
});
3737
});
3838

39-
// the live data has v24 releases from after these dates, so these fail if
39+
// the snapshot has releases from after these dates, so these fail if
4040
// `options` doesn't reach core
4141
describe('check v24 at different dates', async () => {
4242
it('should return undefined for lts before the first LTS release', async () => {
@@ -55,9 +55,9 @@ describe('check v24 at different dates', async () => {
5555

5656
describe('check missing data', async () => {
5757
it('should return undefined for lts on a release line without LTS', async () => {
58-
// v25 is in schedule.json without an lts date
58+
// an odd line, which schedule.json lists without an lts date
5959
assert.strictEqual(await newest('v25', 'lts', at()), undefined);
60-
// v0.11 isn't in schedule.json at all
60+
// an old unstable line that isn't in schedule.json at all
6161
assert.strictEqual(await lts('v0.11', at()), undefined);
6262
});
6363

‎oldest/test/test.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('check v10', async () => {
3636
});
3737
});
3838

39-
// the live data has v24 releases from after these dates, so these fail if
39+
// the snapshot has releases from after these dates, so these fail if
4040
// `options` doesn't reach core
4141
describe('check v24 at different dates', async () => {
4242
it('should return undefined for lts before the first LTS release', async () => {
@@ -55,9 +55,9 @@ describe('check v24 at different dates', async () => {
5555

5656
describe('check missing data', async () => {
5757
it('should return undefined for lts on a release line without LTS', async () => {
58-
// v25 is in schedule.json without an lts date
58+
// an odd line, which schedule.json lists without an lts date
5959
assert.strictEqual(await oldest('v25', 'lts', at()), undefined);
60-
// v0.11 isn't in schedule.json at all
60+
// an old unstable line that isn't in schedule.json at all
6161
assert.strictEqual(await lts('v0.11', at()), undefined);
6262
});
6363

0 commit comments

Comments
 (0)