Skip to content

Commit 6d80df9

Browse files
test: uncommented 'detele' api test case
1 parent 87fead8 commit 6d80df9

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

lib/stack/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { Branch } from './branch'
1919
import { BranchAlias } from './branchAlias'
2020
import { AuditLog } from './auditlog'
2121
import { Taxonomy } from './taxonomy'
22-
// import { format } from 'util'
22+
2323
/**
2424
* 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>.
2525
* @namespace Stack

test/api/taxonomy-test.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const taxonomy = {
1313
}
1414

1515
var taxonomyUID = ''
16-
// var taxonomyDelUID = 'taxonomy_testing'
16+
var taxonomyDelUID = 'taxonomy_testing'
1717

1818
describe('taxonomy api Test', () => {
1919
setup(() => {
@@ -58,15 +58,15 @@ describe('taxonomy api Test', () => {
5858
.catch(done)
5959
})
6060

61-
// it('Delete taxonomy from uid', done => {
62-
// makeTaxonomy(taxonomyDelUID)
63-
// .delete()
64-
// .then((taxonomyResponse) => {
65-
// expect(taxonomyResponse.notice).to.be.equal('Taxonomy deleted successfully.')
66-
// done()
67-
// })
68-
// .catch(done)
69-
// })
61+
it('Delete taxonomy from uid', done => {
62+
makeTaxonomy(taxonomyDelUID)
63+
.delete()
64+
.then((taxonomyResponse) => {
65+
expect(taxonomyResponse.notice).to.be.equal('Taxonomy deleted successfully.')
66+
done()
67+
})
68+
.catch(done)
69+
})
7070

7171
it('Query to get all taxonomies', async () => {
7272
makeTaxonomy()

0 commit comments

Comments
 (0)