Skip to content

Commit 6aa8f32

Browse files
authored
Merge pull request #436 from vim-denops/fix-ci-check
🐛 Fix types on tests
2 parents 4ff8f35 + 3005a7b commit 6aa8f32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

denops/@denops-private/version_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Deno.test("getVersionOr()", async (t) => {
4848
success: true,
4949
code: 0,
5050
signal: null,
51-
stdout: new TextEncoder().encode("invalid value"),
51+
stdout: new Uint8Array(new TextEncoder().encode("invalid value")),
5252
stderr: new Uint8Array(),
5353
}]),
5454
);

denops/@denops-private/worker_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function stubDenoCommand() {
9696
const sandbox = sinon.createSandbox();
9797
sandbox.stub(Deno.Command.prototype, "output").resolves({
9898
success: true,
99-
stdout: _encoder.encode("v11.22.33-abcdef01"),
99+
stdout: new Uint8Array(_encoder.encode("v11.22.33-abcdef01")),
100100
stderr: new Uint8Array(),
101101
code: 0,
102102
signal: null,

0 commit comments

Comments
 (0)