From bdae7e7b90ec08c518e81c34669514e95b7fd86c Mon Sep 17 00:00:00 2001 From: Alex Matthews Date: Sun, 22 Dec 2024 17:08:03 -0600 Subject: [PATCH] Uses env for api key --- test/node_compatibility/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/node_compatibility/index.js b/test/node_compatibility/index.js index d2d992c6..73711c1f 100644 --- a/test/node_compatibility/index.js +++ b/test/node_compatibility/index.js @@ -1,7 +1,11 @@ +const dotenv = require('dotenv'); + +dotenv.config(); + const EasyPostClient = require('../..'); const test = async () => { - const apiKey = 'EZTK0e95f038c18f432fbc50f84855dc20c61QV0fkCenM1PlD8dAvgo0A'; + const apiKey = process.env.EASYPOST_TEST_API_KEY; const client = new EasyPostClient(apiKey); const shipment = await client.Shipment.create({