Skip to content

Commit

Permalink
feat(transpile-optimize): try adding waiting time
Browse files Browse the repository at this point in the history
  • Loading branch information
HaidarJbeily7 committed Nov 9, 2024
1 parent 0989688 commit 681d88c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eo2js/test/commands/transpile.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ describe('transpile', function() {
assert.equal(first.getTime(), second.getTime())
})
it('should retranspile if source was modified', async function() {
transpile()
const transpiled = path.resolve(target, '8-transpile/com/eo2js/simple.xmir')
const source = path.resolve(target, '6-verify/com/eo2js/simple.xmir')
transpile()
const first = fs.statSync(transpiled).mtime
await new Promise(resolve => setTimeout(resolve, 1000))

Check failure on line 103 in eo2js/test/commands/transpile.test.js

View workflow job for this annotation

GitHub Actions / build (macos-latest, 16)

Expected parentheses around arrow function argument
fs.writeFileSync(source, fs.readFileSync(source))
retranspile()
const second = fs.statSync(transpiled).mtime
Expand Down

0 comments on commit 681d88c

Please sign in to comment.