* @param {string} template path to an existing profile to use as a template. * @return {!Promise } a promise for the base64 encoded profile.
(template)
| 145 | * @return {!Promise<string>} a promise for the base64 encoded profile. |
| 146 | */ |
| 147 | async function buildProfile(template) { |
| 148 | let zip = new Zip() |
| 149 | return zip |
| 150 | .addDir(template) |
| 151 | .then(() => zip.toBuffer()) |
| 152 | .then((buf) => buf.toString('base64')) |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * Configuration options for the FirefoxDriver. |
no test coverage detected