Skip to content

Commit ce413a6

Browse files
committed
Stub isCodespaceTemplate correctly
Now that we fixed our expectation in the previous commit, we could see we were stubbing this to false instead of true. So now the test is checking the right scenario.
1 parent 8db9f52 commit ce413a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/ql-vscode/test/vscode-tests/no-workspace/helpers.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ describe("prepareCodeTour", () => {
620620
describe("if the workspace is already open", () => {
621621
it("should not open the tutorial workspace", async () => {
622622
// Set isCodespaceTemplate to true to indicate the workspace has already been opened
623-
jest.spyOn(Setting.prototype, "getValue").mockReturnValue(false);
623+
jest.spyOn(Setting.prototype, "getValue").mockReturnValue(true);
624624

625625
// set up directory to have a 'tutorial.code-workspace' file
626626
const tutorialWorkspacePath = join(dir.name, "tutorial.code-workspace");

0 commit comments

Comments
 (0)