mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
72d9ece6db
* Compiler cleanup This is general compiler cleanup, especially around the codegen part. Goals here were too: 1. Make it possible to compile HTML recursively (needed for future astro-in-expressions work) by moving that work into its own function. 1. Get rid of collectionItems and have compiling the HTML return just a source string. Also not planned, this change gets rid of the different between components and pages. All Astro components compile to the same JavaScript. * Remove unused node types
18 lines
449 B
JavaScript
18 lines
449 B
JavaScript
import { suite } from 'uvu';
|
|
import * as assert from 'uvu/assert';
|
|
import { doc } from './test-utils.js';
|
|
import { setup } from './helpers.js';
|
|
|
|
const Expressions = suite('Expressions');
|
|
|
|
setup(Expressions, './fixtures/astro-expr');
|
|
|
|
Expressions('Can load page', async ({ runtime }) => {
|
|
const result = await runtime.load('/');
|
|
|
|
console.log(result)
|
|
assert.equal(result.statusCode, 200);
|
|
console.log(result.contents);
|
|
});
|
|
|
|
Expressions.run();
|