Skip to content

Commit 3966aa0

Browse files
committed
[CMB-323] more fixes
1 parent d9d1833 commit 3966aa0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ Integration tests run against a live deployment of the Lob API and require multi
8585
To run integration tests:
8686

8787
```bash
88-
$ LOB_API_LIVE_KEY=<<API KEY 1>> LOB_API_LIVE_KEY=<< API KEY 2>> npm run test:integration
88+
$ LOB_API_TEST_KEY=<<API KEY 1>> LOB_API_LIVE_KEY=<< API KEY 2>> npm run test:integration
8989
```
9090
9191
#### A cleaner alternative if you are going to run integration tests frequently
9292
9393
Run this the first time:
9494
9595
```bash
96-
$ echo "LOB_API_LIVE_KEY=<<API KEY 1>>\nLOB_API_LIVE_KEY=<< API KEY 2>>" > LOCAL.env
96+
$ echo "LOB_API_TEST_KEY=<<API KEY 1>> LOB_API_LIVE_KEY=<< API KEY 2>>" > LOCAL.env
9797
```
9898
9999
Then, to run the integration tests:

__tests__/PostcardsApi.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ describe("postcardsApi", () => {
7979
from: ADDRESSES_EDITABLE[1],
8080
front: createdTemplate.id,
8181
back: createdTemplate.id,
82+
use_type: PscUseType.Marketing,
8283
});
8384

8485
const postcard = await postcardsApi.create(postcardWithTemplateIds);
@@ -106,18 +107,21 @@ describe("postcardsApi", () => {
106107
from: ADDRESSES_EDITABLE[0],
107108
front: FILE_LOCATION_4X6,
108109
back: FILE_LOCATION_4X6,
110+
use_type: PscUseType.Marketing,
109111
});
110112
const postcard2 = new PostcardEditable({
111113
to: ADDRESSES_EDITABLE[3],
112114
from: ADDRESSES_EDITABLE[0],
113115
front: FILE_LOCATION_4X6,
114116
back: FILE_LOCATION_4X6,
117+
use_type: PscUseType.Marketing,
115118
});
116119
const postcard3 = new PostcardEditable({
117120
to: ADDRESSES_EDITABLE[6],
118121
from: ADDRESSES_EDITABLE[1],
119122
front: FILE_LOCATION_4X6,
120123
back: FILE_LOCATION_4X6,
124+
use_type: PscUseType.Marketing,
121125
});
122126
const c1 = await postcardsApi.create(postcard1);
123127
const c2 = await postcardsApi.create(postcard2);

0 commit comments

Comments
 (0)