(op: Function, assertMsg: string)
| 6 | import * as BrowserFS from '../../../../src/core/browserfs'; |
| 7 | |
| 8 | function codeAssertThrows(op: Function, assertMsg: string) { |
| 9 | var thrown = false; |
| 10 | try { |
| 11 | op(); |
| 12 | } catch (e) { |
| 13 | thrown = true; |
| 14 | } finally { |
| 15 | assert(thrown, assertMsg); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | export default function() { |
| 20 | var oldmfs = fs.getRootFS(); |