Add tests

This commit is contained in:
Jerome Wu
2022-10-04 12:17:04 +08:00
parent b496cf1f98
commit e17812a999
22 changed files with 1593 additions and 226 deletions

View File

@@ -1,11 +1,11 @@
const chai = require("chai");
const constants = require("./constants");
const browser = require("./test-helper-browser");
global.expect = chai.expect;
global.createFFmpegCore = require("../packages/core-mt");
global.atob = require("./util").atob;
global.FFMPEG_TYPE = "mt";
Object.keys(constants).forEach((key) => {
global[key] = constants[key];
Object.keys(browser).forEach((key) => {
global[key] = browser[key];
});