Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3c8fd8
commit 3320f6f
Showing
85 changed files
with
3,609 additions
and
3,355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/dist/ | ||
/*.js | ||
/tests/unit/coverage/ | ||
/tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
// import TestValues from './testValues' | ||
import Tooling from './setupTooling' | ||
import Tooling from './setupTooling'; | ||
import Mnemonic from './testValues/mnemonic'; | ||
import JsonFile from './testValues/jsonFile'; | ||
import PrivateKey from './testValues/privateKey'; | ||
|
||
export { | ||
Mnemonic, | ||
JsonFile, | ||
PrivateKey, | ||
Tooling | ||
} | ||
export { Mnemonic, JsonFile, PrivateKey, Tooling }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 22 additions & 29 deletions
51
tests/unit/specs/src/components/Buttons/ButtonWithQrCode/ButtonWithQrCode.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,33 @@ | ||
import Vue from 'vue'; | ||
import ButtonWithQrCode from '@/components/Buttons/ButtonWithQrCode/ButtonWithQrCode.vue'; | ||
import { shallowMount } from '@vue/test-utils' | ||
import QrcodeIcon from '@/assets/images/icons/qr-code.svg'; | ||
import { | ||
Tooling | ||
} from '@@/helpers'; | ||
import { shallowMount } from '@vue/test-utils'; | ||
import { Tooling } from '@@/helpers'; | ||
|
||
describe('ButtonWithQrCode.vue', () => { | ||
let localVue, i18n, wrapper, store; | ||
const buttonname = 'QRCode'; | ||
const qrcode = 'qrcode'; | ||
beforeAll(() => { | ||
const baseSetup = Tooling.createLocalVueInstance(); | ||
localVue = baseSetup.localVue; | ||
i18n = baseSetup.i18n; | ||
store = baseSetup.store; | ||
|
||
}); | ||
let localVue, i18n, wrapper, store; | ||
const buttonname = 'QRCode'; | ||
const qrcode = 'qrcode'; | ||
beforeAll(() => { | ||
const baseSetup = Tooling.createLocalVueInstance(); | ||
localVue = baseSetup.localVue; | ||
i18n = baseSetup.i18n; | ||
store = baseSetup.store; | ||
}); | ||
|
||
beforeEach(() => { | ||
wrapper = shallowMount(ButtonWithQrCode, { | ||
localVue, | ||
i18n, | ||
store, | ||
attachToDocument: true, | ||
propsData: { buttonname , qrcode} | ||
}); | ||
beforeEach(() => { | ||
wrapper = shallowMount(ButtonWithQrCode, { | ||
localVue, | ||
i18n, | ||
store, | ||
attachToDocument: true, | ||
propsData: { buttonname, qrcode } | ||
}); | ||
}); | ||
|
||
it('should render correct contents', () => { | ||
expect(wrapper.vm.$el.querySelector('div div .the-button').textContent.trim()).toEqual(buttonname); | ||
expect( | ||
wrapper.vm.$el.querySelector('div div .the-button').textContent.trim() | ||
).toEqual(buttonname); | ||
}); | ||
|
||
describe('ButtonWithQrCode.vue Methods', () => {}); | ||
}); | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.