alshdavid / crayon-router

Simple framework agnostic UI router for SPAs
MIT License
327 stars 13 forks source link

#62 use req.redirect and req.mount in svelte examples #63

Closed acim closed 1 year ago

acim commented 4 years ago

Proposed changes

Svelte examples were broken because in main.js they used res.redirect and res.mount instead of req.redirect and req.mount

Types of changes

What types of changes does your code introduce to Crayon? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

I tried to run "make test" but I got an error:

● Validation Error:

  Module ts-jest in the transform option was not found.
         <rootDir> is: /home/acim/Projects/public/crayon/src/kit

  Configuration Documentation:
  https://jestjs.io/docs/configuration.html

However, I tested manually in browser and there are no console errors like before.