summaryrefslogtreecommitdiff
path: root/test/astro-rss.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/astro-rss.test.js')
-rw-r--r--test/astro-rss.test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/astro-rss.test.js b/test/astro-rss.test.js
index 53a48f158..ed0d37818 100644
--- a/test/astro-rss.test.js
+++ b/test/astro-rss.test.js
@@ -13,14 +13,14 @@ const snapshot = `<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns
const cwd = new URL('./fixtures/astro-rss', import.meta.url);
-const clear = () => del(path.join(fileURLToPath(cwd), '_site')); // clear _site output
+const clear = () => del(path.join(fileURLToPath(cwd), 'dist')); // clear dist output
RSS.before(() => clear());
RSS.after(() => clear());
RSS('Generates RSS correctly', async () => {
execSync('node ../../../astro.mjs build', { cwd: fileURLToPath(cwd) });
- const rss = await fs.promises.readFile(path.join(fileURLToPath(cwd), '_site', 'feed', 'episodes.xml'), 'utf8');
+ const rss = await fs.promises.readFile(path.join(fileURLToPath(cwd), 'dist', 'feed', 'episodes.xml'), 'utf8');
assert.match(rss, snapshot);
});