Skip to content

Commit

Permalink
failing test for #733
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed May 9, 2021
1 parent 3c4bc8e commit 8793749
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as assert from 'uvu/assert';

/** @type {import('test').TestMaker} */
export default function (test) {
test('enables floc', '/headers', async ({ response }) => {
test('enables floc', '/headers/', async ({ response }) => {
const headers = response.headers();
assert.equal(headers['permissions-policy'], undefined);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/test/apps/options/source/pages/host/_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as assert from 'uvu/assert';

/** @type {import('test').TestMaker} */
export default function (test) {
test('sets host', '/host', async ({ page }) => {
test('sets host', '/host/', async ({ page }) => {
assert.equal(await page.textContent('[data-source="load"]'), 'example.com');
assert.equal(await page.textContent('[data-source="store"]'), 'example.com');
assert.equal(await page.textContent('[data-source="endpoint"]'), 'example.com');
Expand Down
9 changes: 9 additions & 0 deletions packages/kit/test/apps/options/source/pages/slash/_tests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as assert from 'uvu/assert';

/** @type {import('test').TestMaker} */
export default function (test) {
test('adds trailing slash', '/slash', async ({ base, page }) => {
assert.equal(page.url(), `${base}/slash/`);
assert.equal(await page.textContent('h2'), '/slash/');
});
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script>
import { page } from '$app/stores';
</script>

<h2>{$page.path}</h2>
1 change: 1 addition & 0 deletions packages/kit/test/apps/options/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const config = {
floc: true,
target: '#content-goes-here',
host: 'example.com',
trailingSlash: 'always',
vite: {
build: {
minify: false
Expand Down

0 comments on commit 8793749

Please sign in to comment.