Skip to content

Commit

Permalink
test: uncommented 'detele' api test case
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithad0703 committed Sep 14, 2023
1 parent f2d83f5 commit 655c991
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/stack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { Branch } from './branch'
import { BranchAlias } from './branchAlias'
import { AuditLog } from './auditlog'
import { Taxonomy } from './taxonomy'
// import { format } from 'util'

/**
* A stack is a space that stores the content of a project (a web or mobile property). Within a stack, you can create content structures, content entries, users, etc. related to the project. Read more about <a href='https://www.contentstack.com/docs/guide/stack'>Stacks</a>.
* @namespace Stack
Expand Down
20 changes: 10 additions & 10 deletions test/api/taxonomy-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const taxonomy = {
}

var taxonomyUID = ''
// var taxonomyDelUID = 'taxonomy_testing'
var taxonomyDelUID = 'taxonomy_testing'

describe('taxonomy api Test', () => {
setup(() => {
Expand Down Expand Up @@ -58,15 +58,15 @@ describe('taxonomy api Test', () => {
.catch(done)
})

// it('Delete taxonomy from uid', done => {
// makeTaxonomy(taxonomyDelUID)
// .delete()
// .then((taxonomyResponse) => {
// expect(taxonomyResponse.notice).to.be.equal('Taxonomy deleted successfully.')
// done()
// })
// .catch(done)
// })
it('Delete taxonomy from uid', done => {
makeTaxonomy(taxonomyDelUID)
.delete()
.then((taxonomyResponse) => {
expect(taxonomyResponse.notice).to.be.equal('Taxonomy deleted successfully.')
done()
})
.catch(done)
})

it('Query to get all taxonomies', async () => {
makeTaxonomy()
Expand Down

0 comments on commit 655c991

Please sign in to comment.