Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
test(unit): update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed May 28, 2020
1 parent 522d3f1 commit 7061669
Show file tree
Hide file tree
Showing 18 changed files with 47 additions and 45 deletions.
4 changes: 2 additions & 2 deletions test/unit/reducers/__snapshots__/account.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Snapshot Diff:

exports[`reducers accountReducer should handle INIT_ACCOUNT_FAILURE 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers accountReducer should handle INIT_ACCOUNT_SUCCESS 1`] = `
Expand Down Expand Up @@ -55,7 +55,7 @@ Snapshot Diff:

exports[`reducers accountReducer should handle LOGIN_CLEAR_ERROR 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers accountReducer should handle LOGIN_FAILURE 1`] = `
Expand Down
6 changes: 3 additions & 3 deletions test/unit/reducers/__snapshots__/activity.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`reducers activityReducer should handle ADD_FILTER 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers activityReducer should handle CHANGE_FILTER 1`] = `
Expand Down Expand Up @@ -135,12 +135,12 @@ Snapshot Diff:

exports[`reducers activityReducer should handle FETCH_ACTIVITY_HISTORY_SUCCESS 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers activityReducer should handle HIDE_ACTIVITY_MODAL 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers activityReducer should handle SET_HAS_NEXT_PAGE 1`] = `
Expand Down
2 changes: 1 addition & 1 deletion test/unit/reducers/__snapshots__/address.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Snapshot Diff:

exports[`reducers addressReducer should handle NEW_ADDRESS_FAILURE 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers addressReducer should handle NEW_ADDRESS_SUCCESS 1`] = `
Expand Down
6 changes: 3 additions & 3 deletions test/unit/reducers/__snapshots__/app.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Snapshot Diff:

exports[`reducers appReducer should handle INIT_DATABASE 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers appReducer should handle INIT_DATABASE_FAILURE 1`] = `
Expand Down Expand Up @@ -61,7 +61,7 @@ Snapshot Diff:

exports[`reducers appReducer should handle RESET_APP 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers appReducer should handle SET_LOADING 1`] = `
Expand Down Expand Up @@ -120,7 +120,7 @@ Snapshot Diff:

exports[`reducers appReducer should handle TERMINATE_APP_SUCCESS 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers appReducer should handle initial state 1`] = `
Expand Down
4 changes: 2 additions & 2 deletions test/unit/reducers/__snapshots__/autopay.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`reducers autopayReducer should handle DISABLE_AUTOPAY 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers autopayReducer should handle ENABLE_AUTOPAY 1`] = `
Expand All @@ -25,7 +25,7 @@ Snapshot Diff:

exports[`reducers autopayReducer should handle RESET_EDIT_MODE 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers autopayReducer should handle SET_AUTOPAY_LIST 1`] = `
Expand Down
6 changes: 3 additions & 3 deletions test/unit/reducers/__snapshots__/channels.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ Snapshot Diff:

exports[`reducers channelsReducer should handle CLEAR_LNURL_CHANNEL 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers channelsReducer should handle GET_CHANNELS 1`] = `
Expand Down Expand Up @@ -862,12 +862,12 @@ Snapshot Diff:

exports[`reducers channelsReducer should handle REMOVE_CLOSING_CHAN_ID 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers channelsReducer should handle REMOVE_LOADING_PUBKEY 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers channelsReducer should handle SET_CHANNEL_VIEW_MODE 1`] = `
Expand Down
2 changes: 1 addition & 1 deletion test/unit/reducers/__snapshots__/invoice.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Snapshot Diff:

exports[`reducers invoiceReducer should handle INVOICE_SUCCESSFUL 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers invoiceReducer should handle RECEIVE_INVOICES 1`] = `
Expand Down
16 changes: 8 additions & 8 deletions test/unit/reducers/__snapshots__/lnd.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

exports[`reducers lndReducer should handle CLEAR_CREATE_WALLET_ERROR 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers lndReducer should handle CLEAR_START_LND_ERROR 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers lndReducer should handle CONNECT_GRPC 1`] = `
Expand Down Expand Up @@ -37,12 +37,12 @@ Snapshot Diff:

exports[`reducers lndReducer should handle CONNECT_GRPC_FAILURE 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers lndReducer should handle CONNECT_GRPC_SUCCESS 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers lndReducer should handle CREATE_WALLET 1`] = `
Expand Down Expand Up @@ -97,7 +97,7 @@ Snapshot Diff:

exports[`reducers lndReducer should handle CREATE_WALLET_SUCCESS 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers lndReducer should handle DISCONNECT_GRPC 1`] = `
Expand Down Expand Up @@ -227,7 +227,7 @@ Snapshot Diff:

exports[`reducers lndReducer should handle FETCH_SEED_SUCCESS 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers lndReducer should handle LND_LIGHTNING_GRPC_ACTIVE 1`] = `
Expand Down Expand Up @@ -391,7 +391,7 @@ Snapshot Diff:

exports[`reducers lndReducer should handle STOP_LND_SUCCESS 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers lndReducer should handle UNLOCK_WALLET 1`] = `
Expand Down Expand Up @@ -446,7 +446,7 @@ Snapshot Diff:

exports[`reducers lndReducer should handle UNLOCK_WALLET_SUCCESS 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers lndReducer should handle initial state 1`] = `
Expand Down
6 changes: 3 additions & 3 deletions test/unit/reducers/__snapshots__/modal.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

exports[`reducers modalReducer should handle CLOSE_ALL_MODALS 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers modalReducer should handle CLOSE_DIALOG 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers modalReducer should handle CLOSE_MODAL 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers modalReducer should handle OPEN_DIALOG 1`] = `
Expand Down
6 changes: 3 additions & 3 deletions test/unit/reducers/__snapshots__/neutrino.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Snapshot Diff:

exports[`reducers neutrinoReducer should handle NEUTRINO_RESET 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers neutrinoReducer should handle RECEIVE_CURRENT_BLOCK_HEIGHT 1`] = `
Expand Down Expand Up @@ -237,7 +237,7 @@ Snapshot Diff:

exports[`reducers neutrinoReducer should handle SET_SYNC_STATUS_PENDING 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers neutrinoReducer should handle SET_SYNC_STATUS_WAITING 1`] = `
Expand Down Expand Up @@ -410,7 +410,7 @@ Snapshot Diff:

exports[`reducers neutrinoReducer should handle STOP_NEUTRINO_SUCCESS 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers neutrinoReducer should handle initial state 1`] = `
Expand Down
4 changes: 2 additions & 2 deletions test/unit/reducers/__snapshots__/notification.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ Snapshot Diff:

exports[`reducers notificationReducer should handle REMOVE_NOTIFICATION 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers notificationReducer should handle UPDATE_NOTIFICATION 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers notificationReducer should handle initial state 1`] = `
Expand Down
4 changes: 2 additions & 2 deletions test/unit/reducers/__snapshots__/onboarding.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`reducers onboardingReducer should handle RESET_ONBOARDING 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers onboardingReducer should handle SET_ALIAS 1`] = `
Expand Down Expand Up @@ -63,7 +63,7 @@ Snapshot Diff:

exports[`reducers onboardingReducer should handle SET_CHAIN 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers onboardingReducer should handle SET_CONNECTION_CERT 1`] = `
Expand Down
8 changes: 4 additions & 4 deletions test/unit/reducers/__snapshots__/payment.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`reducers paymentReducer should handle DECREASE_PAYMENT_RETRIES 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers paymentReducer should handle GET_PAYMENTS 1`] = `
Expand All @@ -20,17 +20,17 @@ Snapshot Diff:

exports[`reducers paymentReducer should handle PAYMENT_COMPLETED 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers paymentReducer should handle PAYMENT_FAILED 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers paymentReducer should handle PAYMENT_SUCCESSFUL 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers paymentReducer should handle RECEIVE_PAYMENTS 1`] = `
Expand Down
2 changes: 1 addition & 1 deletion test/unit/reducers/__snapshots__/settings.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`reducers settingsReducer should handle INIT_SETTINGS 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers settingsReducer should handle INIT_SETTINGS_FAILURE 1`] = `
Expand Down
2 changes: 1 addition & 1 deletion test/unit/reducers/__snapshots__/settingsmenu.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`reducers settingsmenuReducer should handle CLOSE_SETTINGS 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers settingsmenuReducer should handle OPEN_SETTINGS 1`] = `
Expand Down
6 changes: 3 additions & 3 deletions test/unit/reducers/__snapshots__/transaction.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ Snapshot Diff:

exports[`reducers transactionReducer should handle TRANSACTION_COMPLETE 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers transactionReducer should handle TRANSACTION_FAILED 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers transactionReducer should handle TRANSACTION_SUCCESSFUL 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers transactionReducer should handle initial state 1`] = `
Expand Down
6 changes: 3 additions & 3 deletions test/unit/reducers/__snapshots__/wallet.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`reducers walletReducer should handle DELETE_WALLET 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers walletReducer should handle DELETE_WALLET_FAILURE 1`] = `
Expand All @@ -21,12 +21,12 @@ Snapshot Diff:

exports[`reducers walletReducer should handle DELETE_WALLET_SUCCESS 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers walletReducer should handle PUT_WALLET 1`] = `
Snapshot Diff:
Compared values have no visual difference.
[2mCompared values have no visual difference.[22m
`;

exports[`reducers walletReducer should handle SET_WALLETS 1`] = `
Expand Down
2 changes: 2 additions & 0 deletions test/unit/utils/lnurl.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ describe('lnurl', () => {

const params = await fetchLnurlParams(parseLnUrl(url))
expect(params).toEqual({
lnurl:
'https://service.com/api?q=3fc3645b439ce8e7f2553a69e5267081d96dcd340693afabe04be7b0ccd178df',
tag: 'withdrawRequest',
callback: 'cb',
secret: 'secret',
Expand Down

0 comments on commit 7061669

Please sign in to comment.