-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Prevent "TypeError: object is not iterable"
- Loading branch information
1 parent
c25410f
commit 87a94be
Showing
2 changed files
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* eslint-disable @typescript-eslint/no-unsafe-return */ | ||
/* eslint-disable @typescript-eslint/no-unsafe-call */ | ||
// eslint-disable-next-line @typescript-eslint/triple-slash-reference | ||
/// <reference path="../../dist/service.d.ts" /> | ||
|
||
import { browser, expect } from '@wdio/globals' | ||
|
||
describe('editor', () => { | ||
describe('getOpenTabs', () => { | ||
it('returns an empty array when no tabs are open', async () => { | ||
const workbench = await browser.getWorkbench() | ||
await workbench.getEditorView().closeAllEditors() | ||
|
||
expect(await workbench.getEditorView().getOpenTabs()).toStrictEqual([]) | ||
}) | ||
}) | ||
}) |