Skip to content

Commit a214262

Browse files
changed the decription for it in testcases
1 parent 405e17f commit a214262

File tree

7 files changed

+57
-57
lines changed

7 files changed

+57
-57
lines changed

test/sanity-check/api/asset-test.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('Assets api Test', () => {
1616
client = contentstackClient(user.authtoken)
1717
})
1818

19-
it('Asset Upload ', done => {
19+
it('should asset Upload ', done => {
2020
const asset = {
2121
upload: path.join(__dirname, '../mock/customUpload.html'),
2222
title: 'customasset',
@@ -38,14 +38,14 @@ describe('Assets api Test', () => {
3838
.catch(done)
3939
})
4040

41-
it('Download asset from URL.', done => {
41+
it('should download asset from URL.', done => {
4242
makeAsset().download({ url: assetURL, responseType: 'stream' })
4343
.then((response) => {
4444
writeDownloadedFile(response, 'asset1')
4545
done()
4646
}).catch(done)
4747
})
48-
it('Download asset from fetch details ', done => {
48+
it('should download asset from fetch details ', done => {
4949
makeAsset(assetUID).fetch()
5050
.then((asset) => asset.download({ responseType: 'stream' }))
5151
.then((response) => {
@@ -54,7 +54,7 @@ describe('Assets api Test', () => {
5454
}).catch(done)
5555
})
5656

57-
it('Create folder ', done => {
57+
it('should create folder ', done => {
5858
makeAsset().folder().create({ asset: { name: 'Sample Folder' } })
5959
.then((asset) => {
6060
folderUID = asset.uid
@@ -66,7 +66,7 @@ describe('Assets api Test', () => {
6666
.catch(done)
6767
})
6868

69-
it('Asset Upload in folder', done => {
69+
it('should asset Upload in folder', done => {
7070
const asset = {
7171
upload: path.join(__dirname, '../mock/customUpload.html'),
7272
title: 'customasset in Folder',
@@ -89,7 +89,7 @@ describe('Assets api Test', () => {
8989
.catch(done)
9090
})
9191

92-
it('Asset Upload in folder with contenttype', done => {
92+
it('should asset Upload in folder with contenttype', done => {
9393
const asset = {
9494
upload: path.join(__dirname, '../mock/berries.jfif'),
9595
title: 'customasset2 in Folder',
@@ -112,7 +112,7 @@ describe('Assets api Test', () => {
112112
})
113113
.catch(done)
114114
})
115-
it('Replace asset ', done => {
115+
it('should replace asset ', done => {
116116
const asset = {
117117
upload: path.join(__dirname, '../mock/upload.html')
118118
}
@@ -127,7 +127,7 @@ describe('Assets api Test', () => {
127127
.catch(done)
128128
})
129129

130-
it('Fetch and Update asset details', done => {
130+
it('should fetch and Update asset details', done => {
131131
makeAsset(assetUID)
132132
.fetch()
133133
.then((asset) => {
@@ -145,7 +145,7 @@ describe('Assets api Test', () => {
145145
.catch(done)
146146
})
147147

148-
it('Publish Asset', done => {
148+
it('should publish Asset', done => {
149149
makeAsset(publishAssetUID)
150150
.publish({ publishDetails: {
151151
locales: ['hi-in', 'en-us'],
@@ -158,7 +158,7 @@ describe('Assets api Test', () => {
158158
.catch(done)
159159
})
160160

161-
it('Unpublish Asset', done => {
161+
it('should unpublish Asset', done => {
162162
makeAsset(publishAssetUID)
163163
.unpublish({ publishDetails: {
164164
locales: ['hi-in', 'en-us'],
@@ -171,7 +171,7 @@ describe('Assets api Test', () => {
171171
.catch(done)
172172
})
173173

174-
it('Delete asset', done => {
174+
it('should delete asset', done => {
175175
makeAsset(assetUID)
176176
.delete()
177177
.then((data) => {
@@ -181,7 +181,7 @@ describe('Assets api Test', () => {
181181
.catch(done)
182182
})
183183

184-
it('Query to fetch all asset', done => {
184+
it('should query to fetch all asset', done => {
185185
makeAsset()
186186
.query()
187187
.find()
@@ -196,7 +196,7 @@ describe('Assets api Test', () => {
196196
.catch(done)
197197
})
198198

199-
it('Query to fetch title match asset', done => {
199+
it('should query to fetch title match asset', done => {
200200
makeAsset()
201201
.query({ query: { title: 'Update title' } })
202202
.find()

test/sanity-check/api/contentType-delete-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('Content Type delete api Test', () => {
1212
client = contentstackClient(user.authtoken)
1313
})
1414

15-
it('Content Type delete', done => {
15+
it('should content Type delete', done => {
1616
makeContentType(multiPageCT.content_type.uid)
1717
.delete().then((data) => {
1818
expect(data.notice).to.be.equal('Content Type deleted successfully.')

test/sanity-check/api/contentType-test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('Content Type api Test', () => {
1515
client = contentstackClient(user.authtoken)
1616
})
1717

18-
it('Create Single page ContentType Schema', done => {
18+
it('should create Single page ContentType Schema', done => {
1919
makeContentType()
2020
.create(singlepageCT)
2121
.then((contentType) => {
@@ -26,7 +26,7 @@ describe('Content Type api Test', () => {
2626
.catch(done)
2727
})
2828

29-
it('Create Multi page ContentType Schema', done => {
29+
it('should create Multi page ContentType Schema', done => {
3030
makeContentType()
3131
.create(multiPageCT)
3232
.then((contentType) => {
@@ -38,7 +38,7 @@ describe('Content Type api Test', () => {
3838
.catch(done)
3939
})
4040

41-
it('Get all ContentType', done => {
41+
it('should get all ContentType', done => {
4242
makeContentType()
4343
.query()
4444
.find()
@@ -53,7 +53,7 @@ describe('Content Type api Test', () => {
5353
.catch(done)
5454
})
5555

56-
it('Query ContentType title', done => {
56+
it('should query ContentType title', done => {
5757
makeContentType()
5858
.query({ query: { title: singlepageCT.content_type.title } })
5959
.find()
@@ -70,7 +70,7 @@ describe('Content Type api Test', () => {
7070
.catch(done)
7171
})
7272

73-
it('Fetch ContentType from uid', done => {
73+
it('should fetch ContentType from uid', done => {
7474
makeContentType(multiPageCT.content_type.uid)
7575
.fetch()
7676
.then((contentType) => {
@@ -81,7 +81,7 @@ describe('Content Type api Test', () => {
8181
.catch(done)
8282
})
8383

84-
it('Fetch and Update ContentType schema', done => {
84+
it('should fetch and Update ContentType schema', done => {
8585
makeContentType(multiPageCTUid)
8686
.fetch()
8787
.then((contentType) => {
@@ -95,7 +95,7 @@ describe('Content Type api Test', () => {
9595
.catch(done)
9696
})
9797

98-
it('Import content type', done => {
98+
it('should import content type', done => {
9999
makeContentType().import({
100100
content_type: path.join(__dirname, '../mock/contentType.json')
101101
})
@@ -107,7 +107,7 @@ describe('Content Type api Test', () => {
107107
.catch(done)
108108
})
109109

110-
it('Delete ContentTypes', done => {
110+
it('should delete ContentTypes', done => {
111111
makeContentType(importCTUid)
112112
.delete()
113113
.then((contentType) => {

test/sanity-check/api/entry-test.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('Entry api Test', () => {
1515
client = contentstackClient(user.authtoken)
1616
})
1717

18-
it('Create Entry in Single ', done => {
18+
it('should create Entry in Single ', done => {
1919
var entry = {
2020
title: 'Sample Entry',
2121
url: 'sampleEntry'
@@ -31,7 +31,7 @@ describe('Entry api Test', () => {
3131
})
3232
.catch(done)
3333
})
34-
it('Entry fetch with Content Type', done => {
34+
it('should entry fetch with Content Type', done => {
3535
makeEntry(singlepageCT.content_type.uid, entryUTD)
3636
.fetch({ include_content_type: true })
3737
.then((entryResponse) => {
@@ -42,7 +42,7 @@ describe('Entry api Test', () => {
4242
.catch(done)
4343
})
4444

45-
it('Localize entry with title update', done => {
45+
it('should localize entry with title update', done => {
4646
makeEntry(singlepageCT.content_type.uid, entryUTD)
4747
.fetch()
4848
.then((entry) => {
@@ -59,7 +59,7 @@ describe('Entry api Test', () => {
5959
.catch(done)
6060
})
6161

62-
it('Create Entries for Multiple page', done => {
62+
it('should create Entries for Multiple page', done => {
6363
makeEntry(multiPageCT.content_type.uid)
6464
.create({ entry: entryFirst })
6565
.then((entry) => {
@@ -74,7 +74,7 @@ describe('Entry api Test', () => {
7474
.catch(done)
7575
})
7676

77-
it('Create Entries 2 for Multiple page', done => {
77+
it('should create Entries 2 for Multiple page', done => {
7878
makeEntry(multiPageCT.content_type.uid)
7979
.create({ entry: entrySecond })
8080
.then((entry) => {
@@ -90,7 +90,7 @@ describe('Entry api Test', () => {
9090
.catch(done)
9191
})
9292

93-
it('Create Entries 3 for Multiple page', done => {
93+
it('should create Entries 3 for Multiple page', done => {
9494
makeEntry(multiPageCT.content_type.uid)
9595
.create({ entry: entryThird })
9696
.then((entry) => {
@@ -106,7 +106,7 @@ describe('Entry api Test', () => {
106106
.catch(done)
107107
})
108108

109-
it('Get all Entry', done => {
109+
it('should get all Entry', done => {
110110
makeEntry(multiPageCT.content_type.uid)
111111
.query({ include_count: true, include_content_type: true }).find()
112112
.then((collection) => {
@@ -121,7 +121,7 @@ describe('Entry api Test', () => {
121121
.catch(done)
122122
})
123123

124-
it('Get all Entry from tag', done => {
124+
it('should get all Entry from tag', done => {
125125
makeEntry(multiPageCT.content_type.uid)
126126
.query({ include_count: true, query: { tags: entrySecond.tags[0] } }).find()
127127
.then((collection) => {
@@ -135,7 +135,7 @@ describe('Entry api Test', () => {
135135
.catch(done)
136136
})
137137

138-
it('Publish Entry', done => {
138+
it('should publish Entry', done => {
139139
makeEntry(singlepageCT.content_type.uid, entryUTD)
140140
.publish({ publishDetails: {
141141
locales: ['en-us'],
@@ -148,7 +148,7 @@ describe('Entry api Test', () => {
148148
.catch(done)
149149
})
150150

151-
it('Publish localized Entry to locales', done => {
151+
it('should publish localized Entry to locales', done => {
152152
makeEntry(singlepageCT.content_type.uid, entryUTD)
153153
.publish({ publishDetails: {
154154
locales: ['hi-in', 'en-at'],
@@ -162,7 +162,7 @@ describe('Entry api Test', () => {
162162
.catch(done)
163163
})
164164

165-
it('Unpublish localized entry', done => {
165+
it('should unpublish localized entry', done => {
166166
makeEntry(singlepageCT.content_type.uid, entryUTD)
167167
.unpublish({ publishDetails: {
168168
locales: ['hi-in', 'en-at'],
@@ -176,7 +176,7 @@ describe('Entry api Test', () => {
176176
.catch(done)
177177
})
178178

179-
it('Import Entry', done => {
179+
it('should import Entry', done => {
180180
makeEntry(multiPageCT.content_type.uid)
181181
.import({
182182
entry: path.join(__dirname, '../mock/entry.json')

test/sanity-check/api/organization-test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('Organization api test', () => {
1313
client = contentstackClient(user.authtoken)
1414
})
1515

16-
it('Fetch all organizations', done => {
16+
it('should fetch all organizations', done => {
1717
client.organization().fetchAll()
1818
.then((response) => {
1919
for (const index in response.items) {
@@ -26,7 +26,7 @@ describe('Organization api test', () => {
2626
.catch(done)
2727
})
2828

29-
it('Get Current user info test', done => {
29+
it('should get Current user info test', done => {
3030
client.getUser({ include_orgs: true, include_orgs_roles: true, include_stack_roles: true, include_user_settings: true }).then((user) => {
3131
for (const index in user.organizations) {
3232
const organizations = user.organizations[index]
@@ -40,7 +40,7 @@ describe('Organization api test', () => {
4040
.catch(done)
4141
})
4242

43-
it('Fetch organization', done => {
43+
it('should fetch organization', done => {
4444
organization.fetch()
4545
.then((organizations) => {
4646
expect(organizations.name).to.be.equal('CLI Dev and Automation', 'Organization name dose not match')
@@ -49,7 +49,7 @@ describe('Organization api test', () => {
4949
.catch(done)
5050
})
5151

52-
it('Get all stacks in an Organization', done => {
52+
it('should get all stacks in an Organization', done => {
5353
organization.stacks()
5454
.then((response) => {
5555
for (const index in response.items) {
@@ -62,7 +62,7 @@ describe('Organization api test', () => {
6262
.catch(done)
6363
})
6464
// need to test with transfer ownership
65-
it.skip('Transfer Organization Ownership', done => {
65+
it.skip('should transfer Organization Ownership', done => {
6666
organization.transferOwnership('[email protected]')
6767
.then((data) => {
6868
expect(data.notice).to.be.equal('Email has been successfully sent to the user.', 'Message does not match')
@@ -75,7 +75,7 @@ describe('Organization api test', () => {
7575
})
7676
})
7777

78-
it('Get all roles in an organization', done => {
78+
it('should get all roles in an organization', done => {
7979
organization.roles()
8080
.then((roles) => {
8181
for (const i in roles.items) {
@@ -88,7 +88,7 @@ describe('Organization api test', () => {
8888
.catch(done)
8989
})
9090

91-
it('Get all invitations in an organization', done => {
91+
it('should get all invitations in an organization', done => {
9292
organization.getInvitations({ include_count: true })
9393
.then((response) => {
9494
expect(response.count).to.not.equal(null, 'Failed Transfer Organization Ownership')

0 commit comments

Comments
 (0)