[ci] format
This commit is contained in:
parent
da5e6ca128
commit
55c8aced44
1 changed files with 5 additions and 5 deletions
|
@ -16,26 +16,26 @@ describe('Markdown tests', () => {
|
||||||
before(async () => {
|
before(async () => {
|
||||||
await fixture.build();
|
await fixture.build();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Can load a simple markdown page with Astro', async () => {
|
it('Can load a simple markdown page with Astro', async () => {
|
||||||
const html = await fixture.readFile('/post/index.html');
|
const html = await fixture.readFile('/post/index.html');
|
||||||
const $ = cheerio.load(html);
|
const $ = cheerio.load(html);
|
||||||
|
|
||||||
expect($('p').first().text()).to.equal('Hello world!');
|
expect($('p').first().text()).to.equal('Hello world!');
|
||||||
expect($('#first').text()).to.equal('Some content');
|
expect($('#first').text()).to.equal('Some content');
|
||||||
expect($('#interesting-topic').text()).to.equal('Interesting Topic');
|
expect($('#interesting-topic').text()).to.equal('Interesting Topic');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Can load a realworld markdown page with Astro', async () => {
|
it('Can load a realworld markdown page with Astro', async () => {
|
||||||
const html = await fixture.readFile('/realworld/index.html');
|
const html = await fixture.readFile('/realworld/index.html');
|
||||||
const $ = cheerio.load(html);
|
const $ = cheerio.load(html);
|
||||||
|
|
||||||
expect($('pre')).to.have.lengthOf(7);
|
expect($('pre')).to.have.lengthOf(7);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Does not unescape entities', async () => {
|
it('Does not unescape entities', async () => {
|
||||||
const html = await fixture.readFile('/entities/index.html');
|
const html = await fixture.readFile('/entities/index.html');
|
||||||
expect(html).to.match(new RegExp("<i>This should NOT be italic</i>"));
|
expect(html).to.match(new RegExp('<i>This should NOT be italic</i>'));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue