3ef1b01e14
* Yarn format * Fix changeset --since * Fix Windows tests
18 lines
507 B
JavaScript
18 lines
507 B
JavaScript
import { suite } from 'uvu';
|
|
import * as assert from 'uvu/assert';
|
|
import { doc } from './test-utils.js';
|
|
import { setup } from './helpers.js';
|
|
|
|
const Fallback = suite('Dynamic component fallback');
|
|
|
|
setup(Fallback, './fixtures/astro-fallback');
|
|
|
|
Fallback('Shows static content', async (context) => {
|
|
const result = await context.runtime.load('/');
|
|
if (result.error) throw new Error(result.error);
|
|
|
|
const $ = doc(result.contents);
|
|
assert.equal($('#fallback').text(), 'static');
|
|
});
|
|
|
|
Fallback.run();
|