Fix tests

dependabot/npm_and_yarn/Src/WebController/UI/websocket-extensions-0.1.4
Andras Toth 2020-01-08 14:57:42 +00:00
parent a9d1b00d90
commit 17637a227b
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class="c3route-list" v-if="routes.length || displayEmpty">
<div class="c3route-list" v-if="(routes && routes.length) || displayEmpty">
<h1 v-show="hasTitle">{{ title }}</h1>
<template v-if="routes.length">
<table class="datatable">

View File

@ -16,6 +16,12 @@ describe('@/components/modals/CreateRelay.vue', () => {
it('CreateRelayModal is a Vue instance', () => {
const wrapper = shallowMount(CreateRelayModal, {
propsData: {
options: {
formDefault: {},
source: {}
}
},
store,
localVue
});