mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-13 19:45:26 +00:00
update some tests
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
<h1>{message}</h1>
|
||||
<script context="module">
|
||||
export function preload({ query }) {
|
||||
return this.fetch(`credentials/test.json`, {
|
||||
credentials: query.creds
|
||||
}).then(r => r.json());
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
preload({ query }) {
|
||||
return this.fetch(`credentials/test.json`, {
|
||||
credentials: query.creds
|
||||
}).then(r => r.json());
|
||||
}
|
||||
};
|
||||
</script>
|
||||
export let message;
|
||||
</script>
|
||||
|
||||
<h1>{message}</h1>
|
||||
Reference in New Issue
Block a user