summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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("<i>This should NOT be italic</i>"));
+ expect(html).to.match(new RegExp('<i>This should NOT be italic</i>'));
});
});
});