Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 32 additions & 31 deletions test/sanity-check/api/terms-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,34 +129,35 @@ describe('Terms API Test', () => {
.catch(done)
})

it.skip('should publish with api_version', done => {
const publishData = {
locales: ['en-us'],
environments: ['development'],
items: [
{
uid: taxonomy.uid,
term_uid: 'term_test'
},
{
uid: taxonomy.uid,
term_uid: 'term_test_child1'
},
{
uid: taxonomy.uid,
term_uid: 'term_test_child2'
}
]
}
makeTaxonomy()
.publish(publishData, '3.2')
.then((response) => {
expect(response.notice).to.not.equal(null)
expect(response.job_id).to.not.equal(undefined)
done()
})
.catch(done)
})
// TODO: This test is to be uncommented after the feature is enabled
// it('should publish with api_version', done => {
// const publishData = {
// locales: ['en-us'],
// environments: ['development'],
// items: [
// {
// uid: taxonomy.uid,
// term_uid: 'term_test'
// },
// {
// uid: taxonomy.uid,
// term_uid: 'term_test_child1'
// },
// {
// uid: taxonomy.uid,
// term_uid: 'term_test_child2'
// }
// ]
// }
// makeTaxonomy()
// .publish(publishData, '3.2')
// .then((response) => {
// expect(response.notice).to.not.equal(null)
// expect(response.job_id).to.not.equal(undefined)
// done()
// })
// .catch(done)
// })

it('should search the term with the string passed', done => {
makeTerms(taxonomy.uid).search(termString)
Expand Down Expand Up @@ -226,9 +227,9 @@ function makeTerms (taxonomyUid, termUid = null) {
return client.stack({ api_key: process.env.API_KEY }).taxonomy(taxonomyUid).terms(termUid)
}

function makeTaxonomy () {
return client.stack({ api_key: process.env.API_KEY }).taxonomy()
}
// function makeTaxonomy () {
// return client.stack({ api_key: process.env.API_KEY }).taxonomy()
// }

describe('Terms Query Parameters Sanity Tests', () => {
beforeEach(async () => {
Expand Down
Loading