Skip to content

Commit 201817d

Browse files
committed
Use USPS_USER_ID env var in tests for user id
1 parent 0fa6f21 commit 201817d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/city-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { test } = require('ava');
33

44
const usps = new USPS({
55
server: 'http://production.shippingapis.com/ShippingAPI.dll',
6-
userId: '##'
6+
userId: process.env.USPS_USER_ID
77
});
88

99
test.cb('#cityStateLookup() should return the city when passed a zipcode', t => {

test/validator-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { test } = require('ava');
33

44
const usps = new USPS({
55
server: 'http://production.shippingapis.com/ShippingAPI.dll',
6-
userId: '##'
6+
userId: process.env.USPS_USER_ID
77
});
88

99
test.cb('Address verify should validate apartment', t => {

test/zipcode-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { test } = require('ava');
33

44
const usps = new USPS({
55
server: 'http://production.shippingapis.com/ShippingAPI.dll',
6-
userId: '##'
6+
userId: process.env.USPS_USER_ID
77
});
88

99
const ZIP = '94607-3785';

0 commit comments

Comments
 (0)