Implement router dynamic route replacement logic (#116)

* Implement router dynamic route replacement logic

Vue router has pretty bad dynamic route registration handlers, meaning we have to hack around replacing the full routes array in order to achieve properly matched routes

* Add test coverage for replacerouter function

* Replace anonymous event handlers with named HoCs for better test coverage

* Add tests for module registration

* Get test coverage to 100%
This commit is contained in:
Rijk van Zanten
2020-02-24 12:05:06 -05:00
committed by GitHub
parent 3a7d814e77
commit 139ced06f5
15 changed files with 359 additions and 240 deletions

View File

@@ -1,5 +1,7 @@
<template>
<h1>Settings</h1>
<private-view>
Settings
</private-view>
</template>
<script lang="ts">