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 GddStatus from './GddGdtStatus'
|
||||
import Status from './Status'
|
||||
|
||||
const localVue = global.localVue
|
||||
|
||||
describe('GddStatus', () => {
|
||||
describe('Status', () => {
|
||||
let wrapper
|
||||
|
||||
const mocks = {
|
||||
@ -16,7 +16,7 @@ describe('GddStatus', () => {
|
||||
}
|
||||
|
||||
const Wrapper = () => {
|
||||
return mount(GddStatus, { localVue, mocks, propsData })
|
||||
return mount(Status, { localVue, mocks, propsData })
|
||||
}
|
||||
|
||||
describe('mount', () => {
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'GddStatus',
|
||||
name: 'Status',
|
||||
props: {
|
||||
balance: { type: Number, default: 0 },
|
||||
pending: {
|
||||
@ -108,7 +108,7 @@ describe('DashboardLayoutGdd', () => {
|
||||
|
||||
it('has second item "send" linked to /send in navbar', () => {
|
||||
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', () => {
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<b-col class="col-6">
|
||||
<b-row>
|
||||
<b-col class="col-11 bg-gray text-white p-3">
|
||||
<gdd-status
|
||||
<status
|
||||
class="gdd-status-gdd"
|
||||
:pending="pending"
|
||||
:balance="balance"
|
||||
@ -17,7 +17,7 @@
|
||||
<b-col class="col-6 text-right">
|
||||
<b-row>
|
||||
<b-col class="bg-white text-gray p-3">
|
||||
<gdd-status
|
||||
<status
|
||||
class="gdd-status-gdt"
|
||||
:pending="pending"
|
||||
:balance="GdtBalance"
|
||||
@ -40,14 +40,14 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import GddStatus from './GddGdtStatus.vue'
|
||||
import Status from '../../components/Status.vue'
|
||||
import GddTransactionList from './AccountOverview/GddTransactionList.vue'
|
||||
import GddTransactionListFooter from './AccountOverview/GddTransactionListFooter.vue'
|
||||
|
||||
export default {
|
||||
name: 'Overview',
|
||||
components: {
|
||||
GddStatus,
|
||||
Status,
|
||||
GddTransactionList,
|
||||
GddTransactionListFooter,
|
||||
},
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<b-container fluid>
|
||||
<b-row>
|
||||
<b-col class="bg-gray text-white text-center p-3">
|
||||
<gdd-status
|
||||
<status
|
||||
class="gdd-status-gdd"
|
||||
v-if="showContext"
|
||||
:pending="pending"
|
||||
@ -41,7 +41,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import GddStatus from './GddGdtStatus.vue'
|
||||
import Status from '../../components/Status.vue'
|
||||
import GddSend from './SendOverview/GddSend.vue'
|
||||
|
||||
import TransactionForm from './SendOverview/GddSend/TransactionForm.vue'
|
||||
@ -58,7 +58,7 @@ const EMPTY_TRANSACTION_DATA = {
|
||||
export default {
|
||||
name: 'SendOverview',
|
||||
components: {
|
||||
GddStatus,
|
||||
Status,
|
||||
GddSend,
|
||||
|
||||
TransactionForm,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user