Skip to content

Commit 270ce47

Browse files
committed
fix(contentful-export): fix getFullSourceSpace crash
1 parent 7504070 commit 270ce47

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

lib/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ export default function runContentfulExport (usageParams) {
9090
skipWebhooks: opts.skipWebhooks,
9191
skipRoles: opts.skipRoles,
9292
listrOptions
93-
}).then((data) => {
94-
ctx.data = data
9593
})
9694
}
9795
},

test/index-test.js

-5
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ test('Runs Contentful Export', (t) => {
4040
.then((returnedData) => {
4141
t.ok(createClientsStub.called, 'create clients')
4242
t.ok(getFullSourceSpaceStub.called, 'get full space')
43-
t.equal(returnedData.contentTypes.length, 0, 'returned contentTypes')
44-
t.equal(returnedData.entries.length, 0, 'returned entries')
45-
t.equal(returnedData.assets.length, 0, 'returned assets')
46-
t.equal(returnedData.locales.length, 0, 'returned locales')
47-
t.equal(returnedData, fullSpaceResponse, 'getting the response back')
4843
t.end()
4944
}).catch((error) => {
5045
t.fail('Should not throw ', error)

0 commit comments

Comments
 (0)