Skip to content

Commit 3649b85

Browse files
committed
update test
1 parent bc7c6b5 commit 3649b85

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Source hash: da5457c3c88885477f3bac30bb2f34655d70c769ab2d9bbf3e26bb1269c3a7e9
1+
// Source hash: 32a811ebf3fb661a8c9ba5c0e7dd770811103fbbf6a4e32f48a7678e22b4ede0
22
// src/index.ts
33
import assert from "assert";
44

src/index.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,14 @@ describe("StartWorkspaceAction", () => {
7575
expect(logger.logs).toEqual([]);
7676
expect(logger.warns).toEqual([]);
7777
expect(logger.errors).toEqual([]);
78+
79+
// Invalid output
80+
expect(() =>
81+
action.parseCoderUsersListOutput(dedent`
82+
USERNAME
83+
84+
hugo
85+
`)
86+
).toThrow("Coder username not found in output");
7887
});
7988
});

0 commit comments

Comments
 (0)