You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
126 lines
2.2 KiB
126 lines
2.2 KiB
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`reducers tickerReducer should correctly getTicker 1`] = `
|
|
Object {
|
|
"btcTicker": null,
|
|
"crypto": "",
|
|
"currency": "",
|
|
"currencyFilters": Array [
|
|
Object {
|
|
"key": "btc",
|
|
"name": "BTC",
|
|
},
|
|
Object {
|
|
"key": "bits",
|
|
"name": "bits",
|
|
},
|
|
Object {
|
|
"key": "sats",
|
|
"name": "satoshis",
|
|
},
|
|
],
|
|
"fromCurrency": "sats",
|
|
"ltcTicker": null,
|
|
"tickerLoading": true,
|
|
}
|
|
`;
|
|
|
|
exports[`reducers tickerReducer should correctly receiveTicker 1`] = `
|
|
Object {
|
|
"btcTicker": undefined,
|
|
"crypto": "",
|
|
"currency": "",
|
|
"currencyFilters": Array [
|
|
Object {
|
|
"key": "btc",
|
|
"name": "BTC",
|
|
},
|
|
Object {
|
|
"key": "bits",
|
|
"name": "bits",
|
|
},
|
|
Object {
|
|
"key": "sats",
|
|
"name": "satoshis",
|
|
},
|
|
],
|
|
"fromCurrency": "sats",
|
|
"ltcTicker": undefined,
|
|
"tickerLoading": false,
|
|
}
|
|
`;
|
|
|
|
exports[`reducers tickerReducer should correctly setCrypto 1`] = `
|
|
Object {
|
|
"btcTicker": null,
|
|
"crypto": "foo",
|
|
"currency": "",
|
|
"currencyFilters": Array [
|
|
Object {
|
|
"key": "btc",
|
|
"name": "BTC",
|
|
},
|
|
Object {
|
|
"key": "bits",
|
|
"name": "bits",
|
|
},
|
|
Object {
|
|
"key": "sats",
|
|
"name": "satoshis",
|
|
},
|
|
],
|
|
"fromCurrency": "sats",
|
|
"ltcTicker": null,
|
|
"tickerLoading": false,
|
|
}
|
|
`;
|
|
|
|
exports[`reducers tickerReducer should correctly setCurrency 1`] = `
|
|
Object {
|
|
"btcTicker": null,
|
|
"crypto": "",
|
|
"currency": "foo",
|
|
"currencyFilters": Array [
|
|
Object {
|
|
"key": "btc",
|
|
"name": "BTC",
|
|
},
|
|
Object {
|
|
"key": "bits",
|
|
"name": "bits",
|
|
},
|
|
Object {
|
|
"key": "sats",
|
|
"name": "satoshis",
|
|
},
|
|
],
|
|
"fromCurrency": "",
|
|
"ltcTicker": null,
|
|
"tickerLoading": false,
|
|
}
|
|
`;
|
|
|
|
exports[`reducers tickerReducer should handle initial state 1`] = `
|
|
Object {
|
|
"btcTicker": null,
|
|
"crypto": "",
|
|
"currency": "",
|
|
"currencyFilters": Array [
|
|
Object {
|
|
"key": "btc",
|
|
"name": "BTC",
|
|
},
|
|
Object {
|
|
"key": "bits",
|
|
"name": "bits",
|
|
},
|
|
Object {
|
|
"key": "sats",
|
|
"name": "satoshis",
|
|
},
|
|
],
|
|
"fromCurrency": "sats",
|
|
"ltcTicker": null,
|
|
"tickerLoading": false,
|
|
}
|
|
`;
|
|
|