Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
commands.mobileGetPasteboard = async function mobileGetPasteboard (opts = {}) {
if (!this.isSimulator()) {
throw new Error('Getting pasteboard content is not supported on real devices');
}
return await getPasteboard(this.opts.udid, opts.encoding);
};