'use strict'; require('../common'); const fc = require('fast-check'); describe('Prompt', function () { describe('requestPassword & getPassword', function () { this.timeout(30000); it('returns the password fed into the dialog', () => { fc.assert(fc.property( fc.string(), function (password) { password = password.replace(/\r+|\n+/g, ''); const clean = globalThis.cleanup('', {url: 'ftp://example.com/?0000000000000000'}); document.body.innerHTML = ( '