| 1 |
'use strict'; |
| 2 |
|
| 3 |
const fs = require('fs'); |
| 4 |
const lockfile = require('../..'); |
| 5 |
|
| 6 |
const tmpDir = `${__dirname}/../tmp`; |
| 7 |
|
| 8 |
fs.writeFileSync(`${tmpDir}/foo`, ''); |
| 9 |
|
| 10 |
lockfile.lockSync(`${tmpDir}/foo`); |
| 11 |
|
| 12 |
throw new Error('intencional crash'); |