Skip to content

Commit

Permalink
refactor: move imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB committed Oct 10, 2023
1 parent 11eb54e commit 58e81f9
Show file tree
Hide file tree
Showing 25 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/components/sbb-action-group/sbb-action-group.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { assert, expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { waitForLitRender } from '../../global/testing';
import { SbbActionGroup } from './sbb-action-group';
import { SbbButton } from '../sbb-button';
import { SbbLink } from '../sbb-link';
import { waitForLitRender } from '../../global/testing';

describe('sbb-action-group', () => {
let element: SbbActionGroup;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-button/sbb-button.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { waitForCondition } from '../../global/testing';
import { assert, expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { sendKeys } from '@web/test-runner-commands';
import { SbbButton } from './sbb-button';
import { EventSpy, waitForLitRender } from '../../global/testing';
import { SbbButton } from './sbb-button';

describe('sbb-button', () => {
let element: SbbButton;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-card-action/sbb-card-action.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { html } from 'lit/static-html.js';
import { sendKeys } from '@web/test-runner-commands';
import { SbbCard } from '../sbb-card/sbb-card';
import { SbbCardAction } from './sbb-card-action';
import './sbb-card-action';
import { EventSpy, waitForLitRender } from '../../global/testing';
import './sbb-card-action';

// As tests don't work in specs at all (missing :is support in Jest), we moved all tests to e2e.

Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-dialog/sbb-dialog.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { waitForCondition } from '../../global/testing';
import { assert, expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { sendKeys, setViewport } from '@web/test-runner-commands';
import { EventSpy, waitForLitRender } from '../../global/testing';
import { SbbDialog } from './sbb-dialog';
import '../sbb-button';
import '../sbb-icon';
import '../sbb-title';
import { EventSpy, waitForLitRender } from '../../global/testing';

describe('sbb-dialog', () => {
let element: SbbDialog;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { assert, expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { waitForLitRender } from '../../global/testing';
import { SbbFormFieldClear } from './sbb-form-field-clear';
import { SbbFormField } from '../sbb-form-field/sbb-form-field';
import { waitForLitRender } from '../../global/testing';

describe('sbb-form-field-clear', () => {
let element: SbbFormFieldClear;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-form-field/sbb-form-field.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { aTimeout, assert, expect, fixture, nextFrame } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { sendKeys } from '@web/test-runner-commands';
import { SbbFormField } from './sbb-form-field';
import { waitForLitRender } from '../../global/testing';
import { SbbFormField } from './sbb-form-field';

describe('sbb-form-field', () => {
describe('with input', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-header-action/sbb-header-action.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { waitForCondition } from '../../global/testing';
import { assert, expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { sendKeys } from '@web/test-runner-commands';
import { SbbHeaderAction } from './sbb-header-action';
import { EventSpy, waitForLitRender } from '../../global/testing';
import { SbbHeaderAction } from './sbb-header-action';

describe('sbb-header-action', () => {
let element: SbbHeaderAction;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-header/sbb-header.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { assert, expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { setViewport } from '@web/test-runner-commands';
import { events } from '../sbb-menu';
import { EventSpy, waitForLitRender } from '../../global/testing';
import { SbbHeader } from './sbb-header';
import '../sbb-header-action';
import '../sbb-menu';
import '../sbb-menu-action';
import { EventSpy, waitForLitRender } from '../../global/testing';

describe('sbb-header', () => {
let element: SbbHeader;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-icon/sbb-icon.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { SbbIcon } from './sbb-icon';
import { SbbIconConfig, readConfig } from '../../global/config';
import { expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import './sbb-icon';
import { waitForLitRender } from '../../global/testing';
import './sbb-icon';

describe('sbb-icon', () => {
it('renders', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-image/sbb-image.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { aTimeout, assert, expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { waitForLitRender } from '../../global/testing';
import { SbbImage } from './sbb-image';
import images from '../../global/images';
import { waitForLitRender } from '../../global/testing';

describe('sbb-image', () => {
let element: SbbImage;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-link-list/sbb-link-list.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { assert, expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { waitForLitRender } from '../../global/testing';
import { SbbLinkList } from './sbb-link-list';
import '../sbb-link';
import { waitForLitRender } from '../../global/testing';

describe('sbb-link-list', () => {
let element: SbbLinkList;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-link/sbb-link.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { waitForCondition } from '../../global/testing';
import { expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { sendKeys } from '@web/test-runner-commands';
import { EventSpy, waitForLitRender } from '../../global/testing';
import { SbbLink } from './sbb-link';
import './sbb-link';
import { EventSpy, waitForLitRender } from '../../global/testing';

describe('sbb-link', () => {
let element: SbbLink;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-menu-action/sbb-menu-action.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { waitForCondition } from '../../global/testing';
import { assert, expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { sendKeys } from '@web/test-runner-commands';
import { SbbMenuAction } from './sbb-menu-action';
import { EventSpy, waitForLitRender } from '../../global/testing';
import { SbbMenuAction } from './sbb-menu-action';

describe('sbb-menu-action', () => {
let element: SbbMenuAction;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-menu/sbb-menu.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { waitForCondition } from '../../global/testing';
import { assert, expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { sendKeys, setViewport } from '@web/test-runner-commands';
import { EventSpy, waitForLitRender } from '../../global/testing';
import { SbbMenu, events } from './sbb-menu';
import '../sbb-button';
import '../sbb-menu-action';
import '../sbb-link';
import '../sbb-divider';
import { EventSpy, waitForLitRender } from '../../global/testing';

describe('sbb-menu', () => {
let element: SbbMenu, trigger: HTMLElement;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { SbbPearlChainTime } from './sbb-pearl-chain-time';
import { expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { waitForLitRender } from '../../global/testing';
import { PtRideLeg } from '../../global/timetable';
import './sbb-pearl-chain-time';
import { waitForLitRender } from '../../global/testing';

const now = new Date('2022-08-16T15:00:00Z').valueOf();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { LineColor, SbbPearlChainVerticalItem } from './sbb-pearl-chain-vertical-item';
import { expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import './sbb-pearl-chain-vertical-item';
import { waitForLitRender } from '../../global/testing';
import './sbb-pearl-chain-vertical-item';

describe('sbb-pearl-chain-vertical-item', () => {
it('renders component with charcoal standard line and bullet', async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { SbbPearlChainVertical } from './sbb-pearl-chain-vertical';
import { expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import './sbb-pearl-chain-vertical';
import { waitForLitRender } from '../../global/testing';
import './sbb-pearl-chain-vertical';

describe('sbb-pearl-chain-vertical', () => {
it('renders', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-pearl-chain/sbb-pearl-chain.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { SbbPearlChain } from './sbb-pearl-chain';
import { expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { waitForLitRender } from '../../global/testing';
import { PtRideLeg } from '../../global/timetable';
import './sbb-pearl-chain';
import { waitForLitRender } from '../../global/testing';

describe('sbb-pearl-chain', () => {
describe('sbb-pearl-chain with one leg', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-tab-group/sbb-tab-group.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { waitForLitRender } from '../../global/testing';
import { SbbTabGroup } from './sbb-tab-group';
import '../sbb-tab-group';
import '../sbb-tab-title';
import { waitForLitRender } from '../../global/testing';

describe('sbb-tab-group', () => {
let element: SbbTabGroup;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-time-input/sbb-time-input.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { i18nTimeInputChange } from '../../global/i18n';
import { assert, expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { sendKeys } from '@web/test-runner-commands';
import { EventSpy, waitForLitRender } from '../../global/testing';
import { SbbTimeInput } from './sbb-time-input';
import { ValidationChangeEvent } from '../../global/interfaces';
import { EventSpy, waitForLitRender } from '../../global/testing';

describe('sbb-time-input', () => {
let element: SbbTimeInput, input: HTMLInputElement;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-toast/sbb-toast.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { waitForCondition } from '../../global/testing';
import { assert, expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { SbbToast, events } from './sbb-toast';
import { EventSpy, waitForLitRender } from '../../global/testing';
import { SbbToast, events } from './sbb-toast';

describe('sbb-toast', () => {
let element: SbbToast;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-toggle-check/sbb-toggle-check.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { assert, expect, fixture, nextFrame } from '@open-wc/testing';
import { sendKeys } from '@web/test-runner-commands';
import { html } from 'lit/static-html.js';
import { waitForCondition } from '../../global/testing';
import { SbbToggleCheck } from './sbb-toggle-check';
import { EventSpy, waitForLitRender } from '../../global/testing';
import { SbbToggleCheck } from './sbb-toggle-check';

describe('sbb-toggle-check', () => {
let element: SbbToggleCheck;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-toggle-option/sbb-toggle-option.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { assert, expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { waitForCondition } from '../../global/testing';
import { SbbToggleOption } from './sbb-toggle-option';
import { EventSpy, waitForLitRender } from '../../global/testing';
import { SbbToggleOption } from './sbb-toggle-option';

describe('sbb-toggle-option', () => {
let element: SbbToggleOption;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sbb-toggle/sbb-toggle.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { assert, expect, fixture, nextFrame } from '@open-wc/testing';
import { sendKeys } from '@web/test-runner-commands';
import { html } from 'lit/static-html.js';
import { waitForCondition } from '../../global/testing';
import { EventSpy, waitForLitRender } from '../../global/testing';
import '../sbb-toggle-option';
import { SbbToggleOption } from '../sbb-toggle-option';
import './sbb-toggle';
import { SbbToggle } from './sbb-toggle';
import { EventSpy, waitForLitRender } from '../../global/testing';

describe('sbb-toggle', () => {
let element: SbbToggle;
Expand Down
4 changes: 2 additions & 2 deletions src/components/sbb-toggle/sbb-toggle.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { waitForLitRender } from '../../global/testing';
import { SbbToggle } from './sbb-toggle';
import { SbbToggleOption } from '../sbb-toggle-option/sbb-toggle-option';

import { SbbToggleOption } from '../sbb-toggle-option/sbb-toggle-option';
import '../sbb-toggle';
import '../sbb-toggle-option';
import { waitForLitRender } from '../../global/testing';

describe('sbb-toggle', () => {
let option: SbbToggleOption, page: SbbToggle;
Expand Down

0 comments on commit 58e81f9

Please sign in to comment.