Skip to content

Commit

Permalink
fixed data and test case
Browse files Browse the repository at this point in the history
  • Loading branch information
cs-raj committed Feb 27, 2024
1 parent 719c3f4 commit 412bd64
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,47 @@
{"id":{"name":"wf3","uid":"uid","org_uid":"org1","api_key":"apikey","content_types":["ct2"],"enabled":false,"deleted_at":false}}
{
"wf1": {
"name": "wf1",
"uid": "wf1",
"org_uid": "org1",
"api_key": "apiKey",
"content_types": [
"ct1"
],
"enabled": false,
"deleted_at": false
},
"wf3": {
"name": "wf3",
"uid": "wf3",
"org_uid": "org1",
"api_key": "apiKey",
"content_types": [
"ct2"
],
"enabled": false,
"deleted_at": false
},
"wf2": {
"name": "wf2",
"uid": "wf2",
"org_uid": "org1",
"api_key": "apiKey",
"content_types": [
"ct5",
"ct3"
],
"enabled": false,
"deleted_at": false
},
"wf4": {
"name": "wf4",
"uid": "wf4",
"org_uid": "org1",
"api_key": "apiKey",
"content_types": [
"ct4"
],
"enabled": false,
"deleted_at": false
}
}
18 changes: 0 additions & 18 deletions packages/contentstack-audit/test/unit/modules/workflow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,23 +126,5 @@ describe('Workflows', () => {
await wfInstance.fixWorkflowSchema();
expect(wfInstance.newWorkflowSchema).eql({});
});

fancy
.stdout({ print: process.env.PRINT === 'true' || true })
.stub(wf, 'writeFileSync', () => {})
.stub(ux, 'confirm', async () => true)
.it('expect the format for the fixed Workflow schema that only contains the ct that is present', async () => {
return await wf.writeFixContent({
id: {
name: 'wf3',
uid: 'uid',
org_uid: 'org1',
api_key: 'apikey',
content_types: ['ct2'],
enabled: false,
deleted_at: false,
},
});
});
});
});

0 comments on commit 412bd64

Please sign in to comment.