Skip to content

Commit

Permalink
Remove afterEach in tests (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Draggu authored Jan 9, 2025
1 parent f7f9d80 commit 3c486c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions ui-test/expand_macro.ts → ui-test/expandMacro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ describe("Expand macro test", function () {
await VSBrowser.instance.openResources(path.join("ui-test", "fixtures", "expand_macro"));
});

afterEach(async function () {
await editorView.closeAllEditors();
});

it("checks if macro correctly expands", async function () {
assertExpandAt(
editorView,
Expand Down
6 changes: 1 addition & 5 deletions ui-test/statusBar.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EditorView, StatusBar, VSBrowser, WebElement, Workbench } from "vscode-extension-tester";
import { StatusBar, VSBrowser, WebElement, Workbench } from "vscode-extension-tester";
import { expect } from "chai";
import { isScarbAvailable } from "../test-support/scarb";
import * as path from "path";
Expand All @@ -10,10 +10,6 @@ describe("Status bar", function () {
await VSBrowser.instance.openResources(path.join("ui-test", "fixtures", "empty"));
});

afterEach(async function () {
await new EditorView().closeAllEditors();
});

it("Displays Cairo toolchain version", async function () {
const statusBar = await VSBrowser.instance.driver.wait(
getStatusBarItem,
Expand Down

0 comments on commit 3c486c2

Please sign in to comment.