summaryrefslogtreecommitdiff
path: root/packages/astro/test/0-css.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro/test/0-css.test.js')
-rw-r--r--packages/astro/test/0-css.test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/test/0-css.test.js b/packages/astro/test/0-css.test.js
index 423975c97..e53df8408 100644
--- a/packages/astro/test/0-css.test.js
+++ b/packages/astro/test/0-css.test.js
@@ -291,8 +291,8 @@ describe('CSS', function () {
});
it('resolves Astro styles', async () => {
- const style = $('style[astro-style]');
- expect(style.length).to.not.equal(0);
+ const astroPageCss = $('link[rel=stylesheet][href^=/src/pages/index.astro?astro&type=style]');
+ expect(astroPageCss.length).to.equal(4, 'The index.astro page should generate 4 stylesheets, 1 for each <style> tag on the page.')
});
it('resolves Styles from React', async () => {