Skip to content

Commit

Permalink
Merge pull request #152 from contentstack/fix/sanity-issues-taxonomy
Browse files Browse the repository at this point in the history
fix: adding delay to check the issue with taxonomy
  • Loading branch information
harshithad0703 authored May 21, 2024
2 parents 488f22e + 6d063b9 commit 07c0250
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"buildnativescript": "webpack --config webpack/webpack.nativescript.js --mode production",
"buildweb": "webpack --config webpack/webpack.web.js --mode production",
"test": "npm run test:api && npm run test:unit",
"test:sanity-test": "BABEL_ENV=test nyc --reporter=html mocha --require @babel/register ./test/sanity-check/sanity.js -t 30000 --reporter mochawesome --require babel-polyfill --reporter-options reportDir=mochawesome-report,reportFilename=mochawesome.json && marge mochawesome-report/mochawesome.json -f sanity-report.html --inline",
"test:sanity-test": "BABEL_ENV=test nyc --reporter=html mocha --require @babel/register ./test/sanity-check/sanity.js -t 30000 --reporter mochawesome --require babel-polyfill --reporter-options reportDir=mochawesome-report,reportFilename=mochawesome.json",
"test:sanity": "npm run test:sanity-test || true",
"test:sanity-report": "marge mochawesome-report/mochawesome.json -f sanity-report.html --inline && node sanity-report.mjs",
"test:api": "BABEL_ENV=test nyc --reporter=html --reporter=text mocha --require @babel/register ./test/test.js -t 30000 --reporter mochawesome --require babel-polyfill",
Expand Down
4 changes: 3 additions & 1 deletion test/sanity-check/api/taxonomy-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ describe('taxonomy api Test', () => {
.then((taxonomyResponse) => {
taxonomyUID = taxonomyResponse.uid
expect(taxonomyResponse.name).to.be.equal(taxonomy.name)
done()
setTimeout(() => {
done()
}, 1000)
})
.catch(done)
})
Expand Down

0 comments on commit 07c0250

Please sign in to comment.