Skip to content

Commit 91d2acb

Browse files
committed
test: update getImageCaption tests
1 parent 9892bef commit 91d2acb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/wiki/getImageCaption.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ const test_cases = [
77
{
88
title: '{{Potd/2013-08-01 (en)}}',
99
pic_source: PicSource.WIKIMEDIA_COMMONS,
10-
expected: `Animated view of <a href="https://en.wikipedia.org/wiki/Jupiter" class="extiw" title="en:Jupiter">Jupiter</a> getting larger. These pictures were taken every 10 hours over 28 days in 1979 by <a href="https://en.wikipedia.org/wiki/Voyager_1" class="extiw" title="en:Voyager 1">Voyager 1</a> probe\n`
10+
expected: `Animated view of <a href="https://en.wikipedia.org/wiki/Jupiter" class="extiw" title="en:Jupiter">Jupiter</a> getting larger. These pictures were taken every 10 hours over 28 days in 1979 by <a href="https://en.wikipedia.org/wiki/Voyager_1" class="extiw" title="en:Voyager 1">Voyager 1</a> probe`
1111
},
1212
{
1313
title: '{{Potd/2008-10-16 (en)}}',
1414
pic_source: PicSource.WIKIMEDIA_COMMONS,
15-
expected: `La Catrina – In Mexican folk culture, the Catrina, popularized by <a href="https://en.wikipedia.org/wiki/Jos%C3%A9_Guadalupe_Posada" class="extiw" title="en:José Guadalupe Posada">José Guadalupe Posada</a>, is the skeleton of a high society woman and one of the most popular figures of the <a href="https://en.wikipedia.org/wiki/Day_of_the_Dead" class="extiw" title="en:Day of the Dead">Day of the Dead</a> celebrations in Mexico.Height&#160;: about 15 inches - 38 cm. Picture taken at the Museo de la Ciudad, Leon, Guanajuato, Mexico... a public place\n`
15+
expected: `La Catrina – In Mexican folk culture, the Catrina, popularized by <a href="https://en.wikipedia.org/wiki/Jos%C3%A9_Guadalupe_Posada" class="extiw" title="en:José Guadalupe Posada">José Guadalupe Posada</a>, is the skeleton of a high society woman and one of the most popular figures of the <a href="https://en.wikipedia.org/wiki/Day_of_the_Dead" class="extiw" title="en:Day of the Dead">Day of the Dead</a> celebrations in Mexico.Height&#160;: about 15 inches - 38 cm. Picture taken at the Museo de la Ciudad, Leon, Guanajuato, Mexico... a public place`
1616
},
1717
{
1818
title: '{{POTD/2015-11-05|caption}}',
1919
pic_source: PicSource.WIKIPEDIA_EN,
20-
expected: `<i><b><a href="https://en.wikipedia.org/wiki/The_Kid_(1921_film)" title="The Kid (1921 film)">The Kid</a></b></i> is a 1921 American <a href="https://en.wikipedia.org/wiki/Silent_film" title="Silent film">silent</a> <a href="https://en.wikipedia.org/wiki/Comedy-drama" class="mw-redirect" title="Comedy-drama">comedy-drama</a> film starring <a href="https://en.wikipedia.org/wiki/Charlie_Chaplin" title="Charlie Chaplin">Charlie Chaplin</a> and <a href="https://en.wikipedia.org/wiki/Jackie_Coogan" title="Jackie Coogan">Jackie Coogan</a>. This was Chaplin's first full-length film as a director; he also wrote and produced the film, which follows a young boy who is abandoned by his mother and raised by <a href="https://en.wikipedia.org/wiki/The_Tramp" title="The Tramp">The Tramp</a>. It was the second-highest grossing film in 1921. Innovative in its combination of comedic and dramatic elements, <i>The Kid</i> has been considered <a href="https://en.wikipedia.org/wiki/List_of_films_considered_the_best" class="mw-redirect" title="List of films considered the best">one of the greatest films of the silent era</a>.\n`
20+
expected: `<i><b><a href="https://en.wikipedia.org/wiki/The_Kid_(1921_film)" title="The Kid (1921 film)">The Kid</a></b></i> is a 1921 American <a href="https://en.wikipedia.org/wiki/Silent_film" title="Silent film">silent</a> <a href="https://en.wikipedia.org/wiki/Comedy-drama" class="mw-redirect" title="Comedy-drama">comedy-drama</a> film starring <a href="https://en.wikipedia.org/wiki/Charlie_Chaplin" title="Charlie Chaplin">Charlie Chaplin</a> and <a href="https://en.wikipedia.org/wiki/Jackie_Coogan" title="Jackie Coogan">Jackie Coogan</a>. This was Chaplin's first full-length film as a director; he also wrote and produced the film, which follows a young boy who is abandoned by his mother and raised by <a href="https://en.wikipedia.org/wiki/The_Tramp" title="The Tramp">The Tramp</a>. It was the second-highest grossing film in 1921. Innovative in its combination of comedic and dramatic elements, <i>The Kid</i> has been considered <a href="https://en.wikipedia.org/wiki/List_of_films_considered_the_best" class="mw-redirect" title="List of films considered the best">one of the greatest films of the silent era</a>.`
2121
},
2222
{
2323
title: '{{POTD/2014-04-27|caption}}',
2424
pic_source: PicSource.WIKIPEDIA_EN,
25-
expected: `An overhead view of <a href="https://en.wikipedia.org/wiki/Skylab" title="Skylab">Skylab</a>, the United States' first space station, in Earth orbit as photographed from the <b><a href="https://en.wikipedia.org/wiki/Skylab_4" title="Skylab 4">Skylab 4 Command and Service Modules</a></b>. Skylab 4 was the last mission to Skylab and brought back its final crew; this photograph was the last one taken of the station before the mission re-entered Earth's atmosphere and disintegrated in 1979.\n`
25+
expected: `An overhead view of <a href="https://en.wikipedia.org/wiki/Skylab" title="Skylab">Skylab</a>, the United States' first space station, in Earth orbit as photographed from the <b><a href="https://en.wikipedia.org/wiki/Skylab_4" title="Skylab 4">Skylab 4 Command and Service Modules</a></b>. Skylab 4 was the last mission to Skylab and brought back its final crew; this photograph was the last one taken of the station before the mission re-entered Earth's atmosphere and disintegrated in 1979.`
2626
}
2727
];
2828

0 commit comments

Comments
 (0)