@@ -322,10 +322,10 @@ describe('Github issue links', () => {
322
322
} ) ;
323
323
} ) ;
324
324
325
- it ( 'shows error if open too short' , async ( ) => {
325
+ it ( 'shows warning if open too short' , async ( ) => {
326
326
const issue = firefoxIssue ( ) ;
327
327
issue . information . labels = [ ] ;
328
- const lastWeek = new Date ( Date . now ( ) - 7 * DAY ) ;
328
+ const lastWeek = new Date ( Date . now ( ) - 3 * 7 * DAY ) ;
329
329
issue . information . state = 'open' ;
330
330
issue . information . created_at = lastWeek . toISOString ( ) ;
331
331
const featureLinks = [ issue ] ;
@@ -342,7 +342,7 @@ describe('Github issue links', () => {
342
342
alt="icon"
343
343
class="icon"
344
344
src="https://avatars.githubusercontent.com/u/131524?s=48&v=4">
345
- <sl-badge size="small" variant="danger ">
345
+ <sl-badge size="small" variant="warning ">
346
346
Opened
347
347
<sl-relative-time date="${ lastWeek . toISOString ( ) } ">
348
348
on ${ _dateTimeFormat . format ( lastWeek ) }
@@ -358,42 +358,6 @@ describe('Github issue links', () => {
358
358
} ) ;
359
359
} ) ;
360
360
361
- it ( 'shows warning if open an intermediate time' , async ( ) => {
362
- const issue = firefoxIssue ( ) ;
363
- issue . information . labels = [ ] ;
364
- const threeWeeks = new Date ( Date . now ( ) - 3 * 7 * DAY ) ;
365
- issue . information . state = 'open' ;
366
- issue . information . created_at = threeWeeks . toISOString ( ) ;
367
- const featureLinks = [ issue ] ;
368
- const el = await fixture ( html `< chromedash-link
369
- href ="https://github.com/mozilla/standards-positions/issues/975 "
370
- .featureLinks =${ featureLinks } > Content</ chromedash-link > ` ) ;
371
- expect ( el ) . shadowDom . to . equal (
372
- `<a href="https://github.com/mozilla/standards-positions/issues/975"
373
- rel="noopener noreferrer" target="_blank">
374
- <sl-tooltip>
375
- <div slot="content">...</div>
376
- <sl-tag>
377
- <img
378
- alt="icon"
379
- class="icon"
380
- src="https://avatars.githubusercontent.com/u/131524?s=48&v=4">
381
- <sl-badge size="small" variant="warning">
382
- Opened
383
- <sl-relative-time date="${ threeWeeks . toISOString ( ) } ">
384
- on ${ _dateTimeFormat . format ( threeWeeks ) }
385
- </sl-relative-time>
386
- </sl-badge>
387
- #975 The textInput event
388
- </sl-tag>
389
- </sl-tooltip>
390
- </a>` ,
391
- {
392
- ignoreChildren : [ 'div' ] ,
393
- ignoreAttributes : [ 'style' , 'title' ] ,
394
- } ) ;
395
- } ) ;
396
-
397
361
it ( 'shows neutral if open a long time' , async ( ) => {
398
362
const issue = firefoxIssue ( ) ;
399
363
issue . information . labels = [ ] ;
0 commit comments