Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Commit

Permalink
Renamed RaiVue component to RaiPayment
Browse files Browse the repository at this point in the history
  • Loading branch information
jporter-dev committed Jan 20, 2018
1 parent db04e06 commit 333b785
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Vue.use(Raivue)

### Vue Component
```html
<RaiVue address="xrb_3ui4sg4jjdxsfwshjcbkjnthdzmtbgxe7pa597cxsa4aamkkj3b8dmeome4i" :amount="250000"></RaiVue>
<RaiPayment address="xrb_3ui4sg4jjdxsfwshjcbkjnthdzmtbgxe7pa597cxsa4aamkkj3b8dmeome4i" :amount="250000"></RaiPayment>
```

## Development
Expand Down
2 changes: 1 addition & 1 deletion src/RaiVue.vue → src/RaiPayment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import * as brainblocks from '../lib/brainblocks/dist/brainblocks'
export default {
name: 'RaiVue',
name: 'RaiPayment',
props: {
address: {
type: String,
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import RaiVue from './RaiVue.vue'
import RaiPayment from './RaiPayment.vue'

function install (Vue) {
Vue.component(RaiVue.name, RaiVue)
Vue.component(RaiPayment.name, RaiPayment)
}

// Install by default if using the script tag
Expand All @@ -13,6 +13,6 @@ export default install
// const version = '__VERSION__'
// // Export all components too
// export {
// RaiVue,
// RaiPayment,
// version
// }
8 changes: 4 additions & 4 deletions test/specs/RaiVue.spec.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import RaiVue from 'src/RaiVue.vue'
import RaiPayment from 'src/RaiPayment.vue'
import { createVM } from '../helpers/utils.js'

describe('RaiVue.vue', function () {
describe('RaiPayment.vue', function () {
it('should render correct contents', function () {
const vm = createVM(this, `
<RaiVue address="xrb_3ui4sg4jjdxsfwshjcbkjnthdzmtbgxe7pa597cxsa4aamkkj3b8dmeome4i" :amount="250000"></RaiVue>
`, { components: { RaiVue }})
<RaiPayment address="xrb_3ui4sg4jjdxsfwshjcbkjnthdzmtbgxe7pa597cxsa4aamkkj3b8dmeome4i" :amount="250000"></RaiPayment>
`, { components: { RaiPayment }})
setTimeout(function () {
vm.$el.querySelector('#raivue__button').children.length.should.equal(1)
}, 1000)
Expand Down

0 comments on commit 333b785

Please sign in to comment.