Skip to content
Merged
Changes from 1 commit
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
57 changes: 29 additions & 28 deletions test/sanity-check/api/terms-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,34 +129,35 @@
.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,7 +227,7 @@
return client.stack({ api_key: process.env.API_KEY }).taxonomy(taxonomyUid).terms(termUid)
}

function makeTaxonomy () {

Check failure on line 230 in test/sanity-check/api/terms-test.js

View workflow job for this annotation

GitHub Actions / lint

'makeTaxonomy' is defined but never used
return client.stack({ api_key: process.env.API_KEY }).taxonomy()
}

Expand Down
Loading