Skip to content

Commit 1ed0702

Browse files
committed
update tests
1 parent 7f4222a commit 1ed0702

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

test/expiring-todo-comments.js

+17-17
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ test({
6060
},
6161
'// Expire Condition [2000-01-01]: new term name',
6262
'// TODO [>2000]: We sure didnt past this version',
63-
'// TODO [-empathic]: We actually use this.',
63+
'// TODO [-find-up-simple]: We actually use this.',
6464
'// TODO [+popura]: I think we wont need a broken package.',
6565
'// TODO [semver@>1000]: Welp hopefully we wont get at that.',
6666
'// TODO [semver@>=1000]: Welp hopefully we wont get at that.',
6767
'// TODO [@lubien/fixture-beta-package@>=1.0.0]: we are using a pre-release',
6868
'// TODO [@lubien/fixture-beta-package@>=1.0.0-gamma.1]: beta comes first from gamma',
6969
'// TODO [@lubien/fixture-beta-package@>=1.0.0-beta.2]: we are in beta.1',
70-
'// TODO [2200-12-12, -empathic]: Combo',
71-
'// TODO [2200-12-12, -empathic, +popura]: Combo',
72-
'// TODO [2200-12-12, -empathic, +popura, semver@>=1000]: Combo',
70+
'// TODO [2200-12-12, -find-up-simple]: Combo',
71+
'// TODO [2200-12-12, -find-up-simple, +popura]: Combo',
72+
'// TODO [2200-12-12, -find-up-simple, +popura, semver@>=1000]: Combo',
7373
'// TODO [engine:node@>=100]: When we start supporting only >= 10',
7474
`// TODO [2200-12-12]: Multiple
7575
// TODO [2200-12-12]: Lines`,
@@ -209,24 +209,24 @@ test({
209209
errors: [reachedPackageVersionError('>=1', 'if your package.json version is >=1')],
210210
},
211211
{
212-
code: '// TODO [+empathic]: when you install `empathic`',
213-
errors: [havePackageError('empathic', 'when you install `empathic`')],
212+
code: '// TODO [+find-up-simple]: when you install `find-up-simple`',
213+
errors: [havePackageError('find-up-simple', 'when you install `find-up-simple`')],
214214
},
215215
{
216216
code: '// TODO [-popura]: when you uninstall `popura`',
217217
errors: [dontHavePackageError('popura', 'when you uninstall `popura`')],
218218
},
219219
{
220-
code: '// TODO [empathic@>=1]: when `empathic` version is >= 1',
221-
errors: [versionMatchesError('empathic >= 1', 'when `empathic` version is >= 1')],
220+
code: '// TODO [find-up-simple@>=1]: when `find-up-simple` version is >= 1',
221+
errors: [versionMatchesError('find-up-simple >= 1', 'when `find-up-simple` version is >= 1')],
222222
},
223223
{
224224
code: '// TODO [engine:node@>=8]: when support is for node >= 8',
225225
errors: [engineMatchesError('node>=8', 'when support is for node >= 8')],
226226
},
227227
{
228-
code: '// TODO [empathic@>0.2.0]: when `empathic` version is > 0.2.0',
229-
errors: [versionMatchesError('empathic > 0.2.0', 'when `empathic` version is > 0.2.0')],
228+
code: '// TODO [find-up-simple@>0.2.0]: when `find-up-simple` version is > 0.2.0',
229+
errors: [versionMatchesError('find-up-simple > 0.2.0', 'when `find-up-simple` version is > 0.2.0')],
230230
},
231231
{
232232
code: '// TODO [@lubien/fixture-beta-package@>=1.0.0-alfa.1]: when `@lubien/fixture-beta-package` version is >= 1.0.0-alfa.1',
@@ -323,16 +323,16 @@ test({
323323
],
324324
},
325325
{
326-
code: '// TODO [-popura, empathic@>=1]: Combine not having a package with version match',
326+
code: '// TODO [-popura, find-up-simple@>=1]: Combine not having a package with version match',
327327
errors: [
328328
dontHavePackageError('popura', 'Combine not having a package with version match'),
329-
versionMatchesError('empathic >= 1', 'Combine not having a package with version match'),
329+
versionMatchesError('find-up-simple >= 1', 'Combine not having a package with version match'),
330330
],
331331
},
332332
{
333-
code: '// TODO [+empathic, -popura]: Combine presence/absence of packages',
333+
code: '// TODO [+find-up-simple, -popura]: Combine presence/absence of packages',
334334
errors: [
335-
havePackageError('empathic', 'Combine presence/absence of packages'),
335+
havePackageError('find-up-simple', 'Combine presence/absence of packages'),
336336
dontHavePackageError('popura', 'Combine presence/absence of packages'),
337337
],
338338
},
@@ -352,13 +352,13 @@ test({
352352
],
353353
},
354354
{
355-
code: '// HUGETODO [semver @>=1, engine:node@>=8, 2000-01-01, -popura, >1, +empathic, empathic@>=1]: Big mix',
355+
code: '// HUGETODO [semver @>=1, engine:node@>=8, 2000-01-01, -popura, >1, +find-up-simple, find-up-simple@>=1]: Big mix',
356356
errors: [
357357
expiredTodoError('2000-01-01', 'Big mix'),
358358
reachedPackageVersionError('>1', 'Big mix'),
359359
dontHavePackageError('popura', 'Big mix'),
360-
havePackageError('empathic', 'Big mix'),
361-
versionMatchesError('empathic >= 1', 'Big mix'),
360+
havePackageError('find-up-simple', 'Big mix'),
361+
versionMatchesError('find-up-simple >= 1', 'Big mix'),
362362
engineMatchesError('node>=8', 'Big mix'),
363363
removeWhitespaceError('semver @>=1', 'Big mix'),
364364
],

0 commit comments

Comments
 (0)