mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
GddGdtStatus.vue changed to component Status.vue
This commit is contained in:
parent
75f20378ac
commit
8f517f1b26
@ -1,9 +1,9 @@
|
|||||||
import { mount } from '@vue/test-utils'
|
import { mount } from '@vue/test-utils'
|
||||||
import GddStatus from './GddGdtStatus'
|
import Status from './Status'
|
||||||
|
|
||||||
const localVue = global.localVue
|
const localVue = global.localVue
|
||||||
|
|
||||||
describe('GddStatus', () => {
|
describe('Status', () => {
|
||||||
let wrapper
|
let wrapper
|
||||||
|
|
||||||
const mocks = {
|
const mocks = {
|
||||||
@ -16,7 +16,7 @@ describe('GddStatus', () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const Wrapper = () => {
|
const Wrapper = () => {
|
||||||
return mount(GddStatus, { localVue, mocks, propsData })
|
return mount(Status, { localVue, mocks, propsData })
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('mount', () => {
|
describe('mount', () => {
|
||||||
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'GddStatus',
|
name: 'Status',
|
||||||
props: {
|
props: {
|
||||||
balance: { type: Number, default: 0 },
|
balance: { type: Number, default: 0 },
|
||||||
pending: {
|
pending: {
|
||||||
@ -108,7 +108,7 @@ describe('DashboardLayoutGdd', () => {
|
|||||||
|
|
||||||
it('has second item "send" linked to /send in navbar', () => {
|
it('has second item "send" linked to /send in navbar', () => {
|
||||||
navbar.findAll('ul > a').at(1).trigger('click')
|
navbar.findAll('ul > a').at(1).trigger('click')
|
||||||
expect(wrapper.findAll('ul > a').at(1).attributes('href')).toBe('/send')
|
expect(wrapper.findAll('a').at(3).attributes('href')).toBe('/send')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('has third item "transactions" in navbar', () => {
|
it('has third item "transactions" in navbar', () => {
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
<b-col class="col-6">
|
<b-col class="col-6">
|
||||||
<b-row>
|
<b-row>
|
||||||
<b-col class="col-11 bg-gray text-white p-3">
|
<b-col class="col-11 bg-gray text-white p-3">
|
||||||
<gdd-status
|
<status
|
||||||
class="gdd-status-gdd"
|
class="gdd-status-gdd"
|
||||||
:pending="pending"
|
:pending="pending"
|
||||||
:balance="balance"
|
:balance="balance"
|
||||||
@ -17,7 +17,7 @@
|
|||||||
<b-col class="col-6 text-right">
|
<b-col class="col-6 text-right">
|
||||||
<b-row>
|
<b-row>
|
||||||
<b-col class="bg-white text-gray p-3">
|
<b-col class="bg-white text-gray p-3">
|
||||||
<gdd-status
|
<status
|
||||||
class="gdd-status-gdt"
|
class="gdd-status-gdt"
|
||||||
:pending="pending"
|
:pending="pending"
|
||||||
:balance="GdtBalance"
|
:balance="GdtBalance"
|
||||||
@ -40,14 +40,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import GddStatus from './GddGdtStatus.vue'
|
import Status from '../../components/Status.vue'
|
||||||
import GddTransactionList from './AccountOverview/GddTransactionList.vue'
|
import GddTransactionList from './AccountOverview/GddTransactionList.vue'
|
||||||
import GddTransactionListFooter from './AccountOverview/GddTransactionListFooter.vue'
|
import GddTransactionListFooter from './AccountOverview/GddTransactionListFooter.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Overview',
|
name: 'Overview',
|
||||||
components: {
|
components: {
|
||||||
GddStatus,
|
Status,
|
||||||
GddTransactionList,
|
GddTransactionList,
|
||||||
GddTransactionListFooter,
|
GddTransactionListFooter,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<b-container fluid>
|
<b-container fluid>
|
||||||
<b-row>
|
<b-row>
|
||||||
<b-col class="bg-gray text-white text-center p-3">
|
<b-col class="bg-gray text-white text-center p-3">
|
||||||
<gdd-status
|
<status
|
||||||
class="gdd-status-gdd"
|
class="gdd-status-gdd"
|
||||||
v-if="showContext"
|
v-if="showContext"
|
||||||
:pending="pending"
|
:pending="pending"
|
||||||
@ -41,7 +41,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import GddStatus from './GddGdtStatus.vue'
|
import Status from '../../components/Status.vue'
|
||||||
import GddSend from './SendOverview/GddSend.vue'
|
import GddSend from './SendOverview/GddSend.vue'
|
||||||
|
|
||||||
import TransactionForm from './SendOverview/GddSend/TransactionForm.vue'
|
import TransactionForm from './SendOverview/GddSend/TransactionForm.vue'
|
||||||
@ -58,7 +58,7 @@ const EMPTY_TRANSACTION_DATA = {
|
|||||||
export default {
|
export default {
|
||||||
name: 'SendOverview',
|
name: 'SendOverview',
|
||||||
components: {
|
components: {
|
||||||
GddStatus,
|
Status,
|
||||||
GddSend,
|
GddSend,
|
||||||
|
|
||||||
TransactionForm,
|
TransactionForm,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user