test(typo): ensure tests are passing

This commit is contained in:
George Lima 2019-04-10 11:01:55 -03:00
parent 03313ec2d1
commit e5970d66eb
2 changed files with 5 additions and 2 deletions

View File

@ -28,7 +28,7 @@ describe('Receive', () => {
expect(
await app.client.getText('#receive-wrapper #wallet-address #wallet-address-balance'),
).toEqual('ZEC 5');
).toEqual('TAZ 5');
expect(
await app.client.element('#receive-wrapper #wallet-address #wallet-address-copy').isVisible(),

View File

@ -2,6 +2,7 @@
/* eslint-disable max-len */
import React from 'react';
import electron from 'electron'; // eslint-disable-line import/no-extraneous-dependencies
import styled, { withTheme } from 'styled-components';
import type { Location, RouterHistory } from 'react-router-dom';
@ -139,7 +140,9 @@ export const Component = ({
? location.pathname === item.route
: location.pathname.startsWith(item.route);
if (!embeddedDaemon && item.route === '/console') return null;
if (electron.remote.process.env.NODE_ENV !== 'test') {
if (!embeddedDaemon && item.route === '/console') return null;
}
return (
<StyledLink