Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added testcases for Tokens & TotalAmount Component #1629

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Fixed Snapshots
  • Loading branch information
NitinRamnani committed Dec 21, 2022
commit 7816cd95cd71822b7b1bcb60ed2868694394d383
2 changes: 1 addition & 1 deletion tests/unit/Tokens.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('Tokens', () => {
beforeEach(() => {
wrapper = shallowMount(Tokens, {
propsData: {
tokens: [{ symbol: 'test123' }, { symbol: 'test456', contractId: '1' }],
tokens: [{ symbol: 'test123', contractId: '1' }, { symbol: 'test456', contractId: '2' }],
vertical: true,
},
});
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/__snapshots__/Tokens.spec.js.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Tokens should match the snapshot 1`] = `
<span class="tokens rg vertical"><span class="icons"><img src="https://avatars.z52da5wt.xyz/1" title="test456" class="to-token border"> <img src="https://avatars.z52da5wt.xyz/undefined" title="test123" class="border pair"></span> <span class="symbols"><span class="symbol">
<span class="tokens rg vertical"><span class="icons"><img src="https://avatars.z52da5wt.xyz/2" title="test456" class="to-token border"> <img src="https://avatars.z52da5wt.xyz/1" title="test123" class="border pair"></span> <span class="symbols"><span class="symbol">
test1...
</span> <span class="separator">
/
Expand Down