Skip to content

Commit

Permalink
living>blp
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamRimmer authored Jan 18, 2025
1 parent 21d4a60 commit 12a4538
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,11 @@ I have a question. Can you help answer it? –[[User:Novem Linguae|<span style="
const revId = 592507;
const isBiography = true;
const newWikiProjects = [ 'WikiProject Romania' ];
const lifeStatus = 'living';
const lifeStatus = 'blp';
const subjectName = 'Lazarut, Raluca';
const output = AFCH.addTalkPageBanners( wikicode, newAssessment, revId, isBiography, newWikiProjects, lifeStatus, subjectName );
expect( output ).toBe(
`{{WikiProject banner shell |living=yes |listas=Lazarut, Raluca |1=
`{{WikiProject banner shell |blp=yes |listas=Lazarut, Raluca |1=
{{subst:WPAFC/article |oldid=592507}}
{{WikiProject Film}}
{{WikiProject Women}}
Expand Down Expand Up @@ -322,11 +322,11 @@ I have a question. Can you help answer it? –[[User:Novem Linguae|<span style="
const revId = 592496;
const isBiography = true;
const newWikiProjects = [ 'WikiProject Africa', 'WikiProject Alabama' ];
const lifeStatus = 'living';
const lifeStatus = 'blp';
const subjectName = 'Jones, Bob';
const output = AFCH.addTalkPageBanners( wikicode, newAssessment, revId, isBiography, newWikiProjects, lifeStatus, subjectName );
expect( output ).toBe(
`{{WikiProject banner shell |class=B |living=yes |listas=Jones, Bob |1=
`{{WikiProject banner shell |class=B |blp=yes |listas=Jones, Bob |1=
{{subst:WPAFC/article |oldid=592496}}
{{WikiProject Biography}}
{{WikiProject Africa}}
Expand All @@ -345,7 +345,7 @@ I have a question. Can you help answer it? –[[User:Novem Linguae|<span style="
const subjectName = '';
const output = AFCH.addTalkPageBanners( wikicode, newAssessment, revId, isBiography, newWikiProjects, lifeStatus, subjectName );
expect( output ).toBe(
`{{WikiProject banner shell |living=no |1=
`{{WikiProject banner shell |blp=no |1=
{{subst:WPAFC/article |oldid=592496}}
{{WikiProject Biography}}
}}`
Expand All @@ -354,7 +354,7 @@ I have a question. Can you help answer it? –[[User:Novem Linguae|<span style="

it.skip( 'talk page has {{wikiproject biography}}, and user selects that it\'s not a biography, so should remove {{wikiproject biography}}', () => {
const wikicode =
`{{wikiproject biography|living=yes|class=B|listas=Jones, Bob}}
`{{wikiproject biography|blp=yes|class=B|listas=Jones, Bob}}
{{WikiProject Somalia}}`;
const newAssessment = '';
const revId = 592496;
Expand Down

0 comments on commit 12a4538

Please sign in to comment.