Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/shared/buttons/CopyButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
},

mounted() {
if (!this.isSupported) return

this.clipboard = new Clipboard(this.$refs.button)

this.clipboard.on('success', (e) => {
Expand Down
6 changes: 5 additions & 1 deletion test/unit/buttons/ExportButton.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import ExportButton from '../../../src/components/shared/buttons/ExportButton'

const Constructor = Vue.extend(ExportButton)

const vm = new Constructor().$mount()
const vm = new Constructor({
propsData: {
url: 'http://test.com/api',
},
}).$mount()

describe('Export Button', () => {
it('should match the snapshot', () => {
Expand Down
1 change: 1 addition & 0 deletions test/unit/misc/Status.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Status from '../../../src/components/shared/misc/Status'
const Constructor = Vue.extend(Status)

const context = {
status: 'test',
contextual_status: {
status: 'in progress',
colour: 'yellow',
Expand Down
1 change: 1 addition & 0 deletions test/unit/misc/SummarisedMultiSelector.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const Constructor = Vue.extend(SummarisedMultiSelector)

const vm = new Constructor({
propsData: {
value: '',
readOnly: false,
options: [
{ id: 1, name: 'PPC' },
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3222,8 +3222,8 @@ create-react-class@^15.5.1, create-react-class@^15.6.0:
object-assign "^4.1.1"

croppie@^2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/croppie/-/croppie-2.5.0.tgz#f730a29add1fd1e576437234bd047606864cc48e"
version "2.6.2"
resolved "https://registry.yarnpkg.com/croppie/-/croppie-2.6.2.tgz#d605ceeffb4aea281f72a63c9a0a305db0a46e50"

cross-env@^3.1.4:
version "3.2.4"
Expand Down