aboutsummaryrefslogtreecommitdiff
path: root/e2e/lib/clipboard.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 10:28:14 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 10:48:39 +0900
commit029d5365e7d74e87375fccb8db097b7c2df3f7f4 (patch)
tree6a24c719da9c60461c7e2fe120b0d42af9e580f2 /e2e/lib/clipboard.ts
parentd72012529bcd820598fa64e1aa20dab1c16acaa5 (diff)
npm run lint:fix
Diffstat (limited to 'e2e/lib/clipboard.ts')
-rw-r--r--e2e/lib/clipboard.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/e2e/lib/clipboard.ts b/e2e/lib/clipboard.ts
index c1eddbb..297b71a 100644
--- a/e2e/lib/clipboard.ts
+++ b/e2e/lib/clipboard.ts
@@ -3,7 +3,7 @@ import { spawn } from 'child_process';
const readLinux = (): Promise<string> => {
let stdout = '', stderr = '';
return new Promise((resolve) => {
- let xsel = spawn('xsel', ['--clipboard', '--output']);
+ const xsel = spawn('xsel', ['--clipboard', '--output']);
xsel.stdout.on('data', (data) => {
stdout += data;
});
@@ -22,7 +22,7 @@ const readLinux = (): Promise<string> => {
const writeLinux = (data: string): Promise<string> => {
let stderr = '';
return new Promise((resolve) => {
- let xsel = spawn('xsel', ['--clipboard', '--input']);
+ const xsel = spawn('xsel', ['--clipboard', '--input']);
xsel.stderr.on('data', (data) => {
stderr += data;
});
@@ -40,7 +40,7 @@ const writeLinux = (data: string): Promise<string> => {
const readDarwin = (): Promise<string> => {
let stdout = '', stderr = '';
return new Promise((resolve) => {
- let pbpaste = spawn('pbpaste');
+ const pbpaste = spawn('pbpaste');
pbpaste.stdout.on('data', (data) => {
stdout += data;
});
@@ -59,7 +59,7 @@ const readDarwin = (): Promise<string> => {
const writeDarwin = (data: string): Promise<string> => {
let stderr = '';
return new Promise((resolve) => {
- let pbcopy = spawn('pbcopy');
+ const pbcopy = spawn('pbcopy');
pbcopy.stderr.on('data', (data) => {
stderr += data;
});