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.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/astro/test/0-css.test.js b/packages/astro/test/0-css.test.js
index f6da42f23..2f1e51a74 100644
--- a/packages/astro/test/0-css.test.js
+++ b/packages/astro/test/0-css.test.js
@@ -266,6 +266,13 @@ describe('CSS', function () {
);
});
});
+
+ describe('Vite features', () => {
+ it('.css?raw return a string', () => {
+ const el = $('#css-raw');
+ expect(el.text()).to.equal('.foo {color: red;}');
+ });
+ });
});
// with "build" handling CSS checking, the dev tests are mostly testing the paths resolve in dev
@@ -375,5 +382,10 @@ describe('CSS', function () {
'Should not have found a preload for the dynamic CSS'
);
});
+
+ it('.css?raw return a string', () => {
+ const el = $('#css-raw');
+ expect(el.text()).to.equal('.foo {color: red;}');
+ });
});
});