mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-12-03 12:26:24 +00:00
71de06a682
Changes: - Removes redundant styles now inside Codex - With the new component, it's not possible to display 3 cards in a single line at a tablet resolution, so the media query responsible is bumped to apply only at the desktop threshold - Decisions are documented in ADR Bug: T286835 Change-Id: I493e8e601ccc31b3cf1f16c0b5a8975f12ef336c
23 lines
443 B
JavaScript
23 lines
443 B
JavaScript
let RelatedArticles;
|
|
describe( 'RelatedArticles', () => {
|
|
beforeEach( () => {
|
|
RelatedArticles = require( '../../resources/ext.relatedArticles.readMore/RelatedArticles.js' );
|
|
} );
|
|
|
|
it( 'renders with cards', () => {
|
|
const html = RelatedArticles( {
|
|
cards: [
|
|
{
|
|
id: '4',
|
|
label: 'Title',
|
|
value: 'Title',
|
|
description: 'Description'
|
|
}
|
|
]
|
|
} );
|
|
expect(
|
|
html
|
|
).toContain( 'class="cdx-card"' );
|
|
} );
|
|
} );
|