Skip to content

Commit 3e20e5b

Browse files
committed
Fix: test case
1 parent f6cb0e6 commit 3e20e5b

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

packages/contentstack-import/test/unit/import/modules/publish.test.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,7 @@ describe('ImportPublish', () => {
286286
});
287287

288288
it('should publish assets with valid publish details', async () => {
289-
fsUtilReadFileStub.returns({
290-
'old-asset-1': 'new-asset-1',
291-
});
289+
fsUtilReadFileStub.returns([{ oldUid: 'old-asset-1', newUid: 'new-asset-1' }]);
292290
buildAssetPublishDataStub.resolves([
293291
{
294292
oldUid: 'old-asset-1',
@@ -332,11 +330,7 @@ describe('ImportPublish', () => {
332330

333331
it('should publish entries for each content type and locale', async () => {
334332
fsUtilReadFileStub.returns({
335-
profiles: {
336-
'en-us': {
337-
'old-entry-1': 'new-entry-1',
338-
},
339-
},
333+
profiles: [{ locale: 'en-us', oldUid: 'old-entry-1', newUid: 'new-entry-1' }],
340334
});
341335
buildEntryPublishDataStub.resolves([
342336
{

0 commit comments

Comments
 (0)