Skip to content

Commit 4b6967e

Browse files
Merge pull request #152 from contentstack/fix/sanity-issues-taxonomy
fix: adding delay to check the issue with taxonomy
2 parents fddcc62 + a154385 commit 4b6967e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"buildnativescript": "webpack --config webpack/webpack.nativescript.js --mode production",
3131
"buildweb": "webpack --config webpack/webpack.web.js --mode production",
3232
"test": "npm run test:api && npm run test:unit",
33-
"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",
33+
"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",
3434
"test:sanity": "npm run test:sanity-test || true",
3535
"test:sanity-report": "marge mochawesome-report/mochawesome.json -f sanity-report.html --inline && node sanity-report.mjs",
3636
"test:api": "BABEL_ENV=test nyc --reporter=html --reporter=text mocha --require @babel/register ./test/test.js -t 30000 --reporter mochawesome --require babel-polyfill",

test/sanity-check/api/taxonomy-test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ describe('taxonomy api Test', () => {
2525
.then((taxonomyResponse) => {
2626
taxonomyUID = taxonomyResponse.uid
2727
expect(taxonomyResponse.name).to.be.equal(taxonomy.name)
28-
done()
28+
setTimeout(() => {
29+
done()
30+
}, 1000)
2931
})
3032
.catch(done)
3133
})

0 commit comments

Comments
 (0)