diff options
author | Shin'ya UEOKA <ueokande@i-beam.org> | 2021-01-02 09:44:30 +0000 |
---|---|---|
committer | Shin'ya UEOKA <ueokande@i-beam.org> | 2021-01-02 09:44:30 +0000 |
commit | 73a7bbd7cc30940d46462ae4fe10d4cc657e6fe3 (patch) | |
tree | 38d9a5f0e29af9febdb53364f88a845d4c2dc80d | |
parent | 1d1336b5df7afdcc160fe81061823686466d58d6 (diff) |
Change return type of e2e test lib
-rw-r--r-- | e2e/lib/clipboard.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/e2e/lib/clipboard.ts b/e2e/lib/clipboard.ts index 6cc94cb..46da0b8 100644 --- a/e2e/lib/clipboard.ts +++ b/e2e/lib/clipboard.ts @@ -20,7 +20,7 @@ const readLinux = (): Promise<string> => { }); }; -const writeLinux = (data: string): Promise<string> => { +const writeLinux = (data: string): Promise<void> => { let stderr = ""; return new Promise((resolve) => { const xsel = spawn("xsel", ["--clipboard", "--input"]); @@ -58,7 +58,7 @@ const readDarwin = (): Promise<string> => { }); }; -const writeDarwin = (data: string): Promise<string> => { +const writeDarwin = (data: string): Promise<void> => { let stderr = ""; return new Promise((resolve) => { const pbcopy = spawn("pbcopy"); |