Skip to content

Commit

Permalink
fix expectedOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemLinguae committed Oct 20, 2024
1 parent a37e3f2 commit 71e4555
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test-submissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe( 'AFCH.Text.cleanUp', () => {
it( 'should not clean up {{Draft categories|[[Category:Test]]}} when isAccept is false', () => {
const wikicode = '{{Draft categories|[[Category:Test]]}}';
const isAccept = false;
const expectedOutput = '{{Draft categories|[[Category:Test]]}}';
const expectedOutput = '{{Draft categories|[[:Category:Test]]}}';
const output = ( new AFCH.Text( wikicode ) ).cleanUp( isAccept );
expect( output ).toBe( expectedOutput );
} );
Expand All @@ -53,7 +53,7 @@ describe( 'AFCH.Text.cleanUp', () => {
it( 'should not clean up {{draft categories|[[Category:Test]]}} (case insensitive) when isAccept is false', () => {
const wikicode = '{{draft categories|[[Category:Test]]}}';
const isAccept = false;
const expectedOutput = '{{draft categories|[[Category:Test]]}}';
const expectedOutput = '{{draft categories|[[:Category:Test]]}}';
const output = ( new AFCH.Text( wikicode ) ).cleanUp( isAccept );
expect( output ).toBe( expectedOutput );
} );
Expand All @@ -69,7 +69,7 @@ describe( 'AFCH.Text.cleanUp', () => {
it( 'should not clean up {{Draftcat|[[Category:Test]]}} when isAccept is false', () => {
const wikicode = '{{Draftcat|[[Category:Test]]}}';
const isAccept = false;
const expectedOutput = '{{Draftcat|[[Category:Test]]}}';
const expectedOutput = '{{Draftcat|[[:Category:Test]]}}';
const output = ( new AFCH.Text( wikicode ) ).cleanUp( isAccept );
expect( output ).toBe( expectedOutput );
} );
Expand Down

0 comments on commit 71e4555

Please sign in to comment.