Add tests
This commit is contained in:
10
packages/ffmpeg/tests/test-helper.js
Normal file
10
packages/ffmpeg/tests/test-helper.js
Normal 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];
|
||||
});
|
||||
Reference in New Issue
Block a user