(func, wait)
| 13860 | models = models.filter(model => !model.printed); |
| 13861 | } |
| 13862 | if (newStatus === 'new') { |
| 13863 | models = models.filter(model => isModelNew(model)); |
| 13864 | } else if (newStatus === 'not-new') { |
| 13865 | models = models.filter(model => !isModelNew(model)); |
| 13866 | } |
| 13867 | if (favoriteStatus === 'favorited') { |
| 13868 | models = models.filter(model => Boolean(model.favorite)); |
| 13869 | } else if (favoriteStatus === 'not-favorited') { |
| 13870 | models = models.filter(model => !model.favorite); |
| 13871 | } |
| 13872 | if (ratingStatus === 'unrated') { |
| 13873 | models = models.filter(model => normalizeModelRatingValue(model.rating) === 0); |
| 13874 | } else if (ratingStatus !== 'all' && /^[1-5]$/.test(ratingStatus)) { |
| 13875 | const exact = parseInt(ratingStatus, 10); |
| 13876 | models = models.filter(model => normalizeModelRatingValue(model.rating) === exact); |
no outgoing calls
no test coverage detected