import mdx from '@astrojs/mdx'; import { expect } from 'chai'; import { loadFixture } from '../../../astro/test/test-utils.js'; import * as cheerio from 'cheerio'; const FIXTURE_ROOT = new URL('./fixtures/mdx-get-static-paths', import.meta.url); describe('getStaticPaths', () => { /** @type {import('astro/test/test-utils').Fixture} */ let fixture; before(async () => { fixture = await loadFixture({ root: FIXTURE_ROOT, integrations: [mdx()], }); await fixture.build(); }); it('Provides file and url', async () => { const html = await fixture.readFile('/one/index.html'); const $ = cheerio.load(html); expect($('p').text()).to.equal('First mdx file'); expect($('#one').text()).to.equal('hello', 'Frontmatter included'); expect($('#url').text()).to.equal('/src/content/1.mdx', 'url is included'); expect($('#file').text()).to.contain( 'fixtures/mdx-get-static-paths/src/content/1.mdx', 'file is included' ); }); }); ='master' selected='selected'>master Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/lib/http.php (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2025-02-24Fix data-lot-id not being correctly set so use href instead (#4453)Gravatar André Andersson 1-1/+1
2025-02-14fix(github): semi-repair (#4449)Gravatar Dag 1-12/+15
2025-02-14fix(vk): semi-disable broken bridge (#4448)Gravatar Dag 1-8/+15
2025-02-08fix nn.de description and paywall filter (#4444)Gravatar Christian Schabesberger 1-2/+2
2025-02-05fix CarThrottleBridge (#4442)Gravatar Tostiman 1-3/+3