Files
DefinitelyTyped/types/trash/trash-tests.ts
Matthew James c62b1125ad trash (#22011)
* Added definition and tests

* Added author details

* Targetting es2015

* Added strictFunctionTypes to keep Travis happy

* Fixed dtslint issues
2017-12-27 12:55:28 -08:00

16 lines
367 B
TypeScript

import trash from "trash";
async function testTrashNoArgs() {
await trash(["/path/to/item1", "/path/to/item2"]);
}
async function testTrashWithArgs() {
await trash(["/path/to/item1", "/path/to/item2"], { glob: false });
}
async function testTrashPerDocumentation() {
trash(["*.png", "!rainbow.png"]).then(() => {
console.log("done");
});
}