Skip to content

Commit 1973417

Browse files
committed
test(integration): Setup integration tests for API coverage suite
1 parent 264e7f3 commit 1973417

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/integration/tests.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,17 @@ import test from 'blue-tape'
22
import {filter, map} from 'lodash/collection'
33
import contentful from '../../'
44

5-
const client = contentful.createClient({
5+
const params = {
66
accessToken: 'b4c0n73n7fu1',
77
space: 'cfexampleapi'
8-
})
8+
}
9+
10+
if (process.env.API_INTEGRATION_TESTS) {
11+
params.host = '127.0.0.1:5000'
12+
params.insecure = true
13+
}
14+
15+
const client = contentful.createClient(params)
916

1017
test('Gets space', t => {
1118
t.plan(3)

0 commit comments

Comments
 (0)