Add tests

This commit is contained in:
Jerome Wu
2022-09-22 18:26:24 +08:00
parent 56e1f269cf
commit 6e9d91483e
24 changed files with 1469 additions and 334 deletions

View File

@@ -0,0 +1,10 @@
const chai = require("chai");
const constants = require("../tests/constants");
global.expect = chai.expect;
global.createFFmpeg = require("..");
global.atob = (b64) => Buffer.from(b64, "base64").toString("binary");
Object.keys(constants).forEach((key) => {
global[key] = constants[key];
});