Created
June 26, 2015 21:18
-
-
Save maxbeatty/d800de03a3e34986c043 to your computer and use it in GitHub Desktop.
Verifying motdotla/dotenv#76
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| assert = require('assert'); | |
| require('dotenv').config({path: 'production.env'}); | |
| assert.equal(process.env.DB_USER, 'root') | |
| assert.equal(process.env.PORT, 80) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DB_USER=root | |
| PORT=80 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To clone and run this snippet:
(no output means all assertions passed. an error will be thrown if an assertion fails)