Backup and end-to-end test!

This commit is contained in:
Scott Nonnenberg 2018-04-20 14:55:33 -07:00
commit a7d44d3344
No known key found for this signature in database
GPG key ID: 5F82280C35134661
6 changed files with 477 additions and 28 deletions

View file

@ -205,3 +205,17 @@ window.Signal.Workflow.MessageDataMigrator =
// We pull this in last, because the native module involved appears to be sensitive to
// /tmp mounted as noexec on Linux.
require('./js/spell_check');
if (window.config.environment === 'test') {
/* eslint-disable global-require, import/no-extraneous-dependencies */
window.test = {
fs: require('fs'),
glob: require('glob'),
fse: require('fs-extra'),
tmp: require('tmp'),
path: require('path'),
basePath: __dirname,
attachmentsPath,
};
/* eslint-enable global-require, import/no-extraneous-dependencies */
}