mirror of
https://github.com/lnbits/lnbits.git
synced 2026-08-15 13:00:14 +02:00
reverting
This commit is contained in:
parent
3498cfb5b8
commit
5196ee6a15
3 changed files with 20 additions and 22 deletions
|
|
@ -1,7 +1,25 @@
|
|||
const LnbitsExtensionRating = {
|
||||
window.app.component(QrcodeVue)
|
||||
|
||||
window.app.component('lnbits-extension-rating', {
|
||||
template: '#lnbits-extension-rating',
|
||||
name: 'lnbits-extension-rating',
|
||||
props: ['rating']
|
||||
}
|
||||
})
|
||||
|
||||
window.app.component('lnbits-fsat', {
|
||||
template: '<span>{{ fsat }}</span>',
|
||||
props: {
|
||||
amount: {
|
||||
type: Number,
|
||||
default: 0
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
fsat() {
|
||||
return LNbits.utils.formatSat(this.amount)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
window.app.component('lnbits-manage', {
|
||||
mixins: [window.windowMixin],
|
||||
|
|
|
|||
|
|
@ -170,7 +170,6 @@ window.app.use(window.i18n)
|
|||
window.app.use(window.router)
|
||||
|
||||
window.app.component(QrcodeVue)
|
||||
window.app.component('lnbits-extension-rating', LnbitsExtensionRating)
|
||||
window.app.component('lnbits-error', window.LnbitsError)
|
||||
|
||||
window.app.mount('#vue')
|
||||
|
|
|
|||
|
|
@ -1,19 +0,0 @@
|
|||
import {mount} from '@vue/test-utils'
|
||||
import {expect, test} from 'vitest'
|
||||
|
||||
// The component to test
|
||||
const MessageComponent = {
|
||||
template: '<p>{{ msg }}</p>',
|
||||
props: ['msg']
|
||||
}
|
||||
|
||||
test('displays message', () => {
|
||||
const wrapper = mount(MessageComponent, {
|
||||
props: {
|
||||
msg: 'Hello world'
|
||||
}
|
||||
})
|
||||
|
||||
// Assert the rendered text of the component
|
||||
expect(wrapper.text()).toContain('Hello world')
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue