From 0bf48c5381258e38ca207186e37b43e9de08aa09 Mon Sep 17 00:00:00 2001 From: Amila Welihinda Date: Fri, 11 Nov 2016 09:55:22 -0800 Subject: [PATCH] Added env var api key detection --- test/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.js b/test/index.js index 2a93372..5ce6d26 100644 --- a/test/index.js +++ b/test/index.js @@ -1,7 +1,7 @@ var should = require('chai').should(); var assert = require('chai').assert; var colors = require('colors'); -var apiKey = process.env.npm_config_key; +var apiKey = process.env.MOVIEDB_API_KEY || process.env.npm_config_key; var api; /**