mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-13 20:39:06 +00:00
wasn't actually testing examples
😳
This commit is contained in:
parent
b6ba04102f
commit
4dd5166927
1 changed files with 6 additions and 3 deletions
|
@ -41,9 +41,9 @@ function execPromise(cmd) {
|
|||
return new Promise((done, error) => {
|
||||
exec(cmd, (e, output) => {
|
||||
if (e) {
|
||||
error(output);
|
||||
error(e);
|
||||
} else {
|
||||
done();
|
||||
done(output);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -54,7 +54,10 @@ function execPromise(cmd) {
|
|||
*/
|
||||
async function testExampleString(str) {
|
||||
// str = str.replace("from \"tone\"", `from "${resolve(__dirname, "../../")}"`);
|
||||
str = `import * as Tone from "${resolve(__dirname, "../../")}"`;
|
||||
str = `
|
||||
import * as Tone from "${resolve(__dirname, "../../")}"
|
||||
${str}
|
||||
`;
|
||||
const { path, cleanup } = await file({ postfix: ".ts" });
|
||||
// work with file here in fd
|
||||
await writeFile(path, str);
|
||||
|
|
Loading…
Reference in a new issue