Skip to content

Commit 39a6013

Browse files
fixed lint errors
1 parent 3bf7d64 commit 39a6013

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ describe('Terms API Test', () => {
176176
.catch(done)
177177
})
178178

179-
180179
it('should delete of the term uid passed', done => {
181180
makeTerms(taxonomy.uid, term.term.uid).delete({ force: true })
182181
.then((response) => {
@@ -186,7 +185,6 @@ describe('Terms API Test', () => {
186185
.catch(done)
187186
})
188187

189-
190188
it('should delete taxonomy', async () => {
191189
const taxonomyResponse = await client.stack({ api_key: process.env.API_KEY }).taxonomy(taxonomy.uid).delete({ force: true })
192190
expect(taxonomyResponse.status).to.be.equal(204)
@@ -201,7 +199,7 @@ describe('Terms Query Parameters Sanity Tests', () => {
201199
beforeEach(async () => {
202200
const user = jsonReader('loggedinuser.json')
203201
client = contentstackClient(user.authtoken)
204-
202+
205203
// Ensure taxonomy exists before running query tests
206204
try {
207205
await client.stack({ api_key: process.env.API_KEY }).taxonomy(taxonomy.uid).fetch()
@@ -227,7 +225,7 @@ describe('Terms Query Parameters Sanity Tests', () => {
227225
}
228226
}
229227
}
230-
228+
231229
// Create some test terms if they don't exist
232230
try {
233231
const existingTerms = await makeTerms(taxonomy.uid).query().find()
@@ -354,7 +352,7 @@ describe('Terms Query Parameters Sanity Tests', () => {
354352
})
355353

356354
it('should get terms with multiple parameters', async () => {
357-
const terms = await makeTerms(taxonomy.uid).query().find({
355+
const terms = await makeTerms(taxonomy.uid).query().find({
358356
locale: 'en-us',
359357
include_children_count: true,
360358
include_count: true,

test/unit/terms-test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ describe('Contentstack Term test', () => {
673673
stackHeaders: stackHeadersMock
674674
})
675675
.query()
676-
.find({
676+
.find({
677677
locale: 'hi-in',
678678
include_children_count: true,
679679
include_count: true,
@@ -686,7 +686,6 @@ describe('Contentstack Term test', () => {
686686
})
687687
.catch(done)
688688
})
689-
690689
})
691690

692691
function makeTerms (data = {}) {

0 commit comments

Comments
 (0)