summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2022-07-26 21:33:54 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-07-26 21:33:54 +0000
commit55c8aced44a60a664f28de9dabf03ca51897599e (patch)
tree37de62713b64e7b8fb71ef983d822163580dfc88
parentda5e6ca128985a26842f630c45fcc989ba3ecf3a (diff)
downloadastro-55c8aced44a60a664f28de9dabf03ca51897599e.tar.gz
astro-55c8aced44a60a664f28de9dabf03ca51897599e.tar.zst
astro-55c8aced44a60a664f28de9dabf03ca51897599e.zip
[ci] format
-rw-r--r--packages/astro/test/markdown.test.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/astro/test/markdown.test.js b/packages/astro/test/markdown.test.js
index b107d36ce..dd5d08940 100644
--- a/packages/astro/test/markdown.test.js
+++ b/packages/astro/test/markdown.test.js
@@ -16,26 +16,26 @@ describe('Markdown tests', () => {
before(async () => {
await fixture.build();
});
-
+
it('Can load a simple markdown page with Astro', async () => {
const html = await fixture.readFile('/post/index.html');
const $ = cheerio.load(html);
-
+
expect($('p').first().text()).to.equal('Hello world!');
expect($('#first').text()).to.equal('Some content');
expect($('#interesting-topic').text()).to.equal('Interesting Topic');
});
-
+
it('Can load a realworld markdown page with Astro', async () => {
const html = await fixture.readFile('/realworld/index.html');
const $ = cheerio.load(html);
-
+
expect($('pre')).to.have.lengthOf(7);
});
it('Does not unescape entities', async () => {
const html = await fixture.readFile('/entities/index.html');
- expect(html).to.match(new RegExp("&#x3C;i>This should NOT be italic&#x3C;/i>"));
+ expect(html).to.match(new RegExp('&#x3C;i>This should NOT be italic&#x3C;/i>'));
});
});
});