Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Testing for 'test' in NODE_ENV #6

Open
singlow opened this issue Jan 9, 2017 · 1 comment
Open

Testing for 'test' in NODE_ENV #6

singlow opened this issue Jan 9, 2017 · 1 comment

Comments

@singlow
Copy link

singlow commented Jan 9, 2017

const isTest = process.env.NODE_ENV = 'test';

const isTest = process.env.NODE_ENV = 'test';

Is this doing anything? Should that be:

const isTest = process.env.NODE_ENV === 'test';
@johncmckim
Copy link
Member

Good find! That's a bug.

singlow added a commit to singlow/web-bff that referenced this issue Jan 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants