summaryrefslogtreecommitdiff
path: root/cli/tests/unit/truncate_test.ts
AgeCommit message (Collapse)Author
2021-09-23test(cli): align unit test permissions with runtime test permissions (#12189)Casper Beyer
2021-09-22chore: replace calls to assertThrowsAsync with assertRejects (#12176)Casper Beyer
2021-08-05refactor(cli/tests): remove unnecessary void return types (#11577)Leo K
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2020-09-27feat(fmt): Sort named import and export specifiers (#7711)David Sherret
2020-07-14Use dprint for internal formatting (#6682)David Sherret
2020-06-25refactor(cli/tests/unit) to use assertThrows (#6459)Casper Beyer
2020-06-20feat(unstable): add Deno.ftruncate and ftruncateSync (#6243)Casper Beyer
2020-06-12improve truncate tests (#6251)Casper Beyer
2020-06-12fix(cli/js): broken truncate permission tests (#6249)Casper Beyer
The tests for testing that `Deno.truncateSync` and `Deno.truncate` require write permissions seem to not call the functions they are testing *at all* and are calling `Deno.mkdir` and `Deno.mkdirSync` instead. This commit replaces those calls with calls to `Deno.truncateSync` and `Deno.truncate` respectively.
2020-05-20move js unit tests to cli/tests (#5678)Ryan Dahl