mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 10:45:57 +00:00
test: fix broken
This commit is contained in:
parent
8ebb27283b
commit
c0fccfea51
9 changed files with 2 additions and 163 deletions
|
|
@ -1,22 +0,0 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { FocusModeMainComponent } from './focus-mode-main.component';
|
||||
|
||||
describe('FocusModeMainComponent', () => {
|
||||
let component: FocusModeMainComponent;
|
||||
let fixture: ComponentFixture<FocusModeMainComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [FocusModeMainComponent],
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(FocusModeMainComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { FocusModeOverlayComponent } from './focus-mode-overlay.component';
|
||||
|
||||
describe('FocusModeOverlayComponent', () => {
|
||||
let component: FocusModeOverlayComponent;
|
||||
let fixture: ComponentFixture<FocusModeOverlayComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [FocusModeOverlayComponent],
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(FocusModeOverlayComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { FocusModePreparationComponent } from './focus-mode-preparation.component';
|
||||
|
||||
describe('FocusModePreparationComponent', () => {
|
||||
let component: FocusModePreparationComponent;
|
||||
let fixture: ComponentFixture<FocusModePreparationComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [FocusModePreparationComponent],
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(FocusModePreparationComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { FocusModeTaskDoneComponent } from './focus-mode-task-done.component';
|
||||
|
||||
describe('FocusModeTaskDoneComponent', () => {
|
||||
let component: FocusModeTaskDoneComponent;
|
||||
let fixture: ComponentFixture<FocusModeTaskDoneComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [FocusModeTaskDoneComponent],
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(FocusModeTaskDoneComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { FocusModeTaskSelectionComponent } from './focus-mode-task-selection.component';
|
||||
|
||||
describe('FocusModeTaskSelectionComponent', () => {
|
||||
let component: FocusModeTaskSelectionComponent;
|
||||
let fixture: ComponentFixture<FocusModeTaskSelectionComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [FocusModeTaskSelectionComponent],
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(FocusModeTaskSelectionComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
import { TestBed } from '@angular/core/testing';
|
||||
|
||||
import { FocusModeService } from './focus-mode.service';
|
||||
|
||||
describe('FocusModeService', () => {
|
||||
let service: FocusModeService;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({});
|
||||
service = TestBed.inject(FocusModeService);
|
||||
});
|
||||
|
||||
it('should be created', () => {
|
||||
expect(service).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
import { TestBed } from '@angular/core/testing';
|
||||
import { provideMockActions } from '@ngrx/effects/testing';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { FocusModeEffects } from './focus-mode.effects';
|
||||
|
||||
describe('FocusModeEffects', () => {
|
||||
let actions$: Observable<any>;
|
||||
let effects: FocusModeEffects;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [FocusModeEffects, provideMockActions(() => actions$)],
|
||||
});
|
||||
|
||||
effects = TestBed.inject(FocusModeEffects);
|
||||
});
|
||||
|
||||
it('should be created', () => {
|
||||
expect(effects).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
import { initialState, reducer } from './focus-mode.reducer';
|
||||
|
||||
describe('FocusMode Reducer', () => {
|
||||
describe('an unknown action', () => {
|
||||
it('should return the previous state', () => {
|
||||
const action = {} as any;
|
||||
|
||||
const result = reducer(initialState, action);
|
||||
|
||||
expect(result).toBe(initialState);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
@ -20,7 +20,7 @@ import {
|
|||
OPEN_PROJECT_TYPE,
|
||||
} from './issue.const';
|
||||
import { TaskService } from '../tasks/task.service';
|
||||
import { Task } from '../tasks/task.model';
|
||||
import { Task, TaskCopy } from '../tasks/task.model';
|
||||
import { IssueServiceInterface } from './issue-service-interface';
|
||||
import { JiraCommonInterfacesService } from './providers/jira/jira-common-interfaces.service';
|
||||
import { GithubCommonInterfacesService } from './providers/github/github-common-interfaces.service';
|
||||
|
|
@ -255,7 +255,7 @@ export class IssueService {
|
|||
async refreshIssueTasks(tasks: Task[]): Promise<void> {
|
||||
// dynamic map that has a list of tasks for every entry where the entry is an issue type
|
||||
const tasksIssueIdsByIssueProviderKey: any = {};
|
||||
const tasksWithoutIssueId = [];
|
||||
const tasksWithoutIssueId: Readonly<Task>[] = [];
|
||||
|
||||
for (const task of tasks) {
|
||||
if (!task.issueId || !task.issueType) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue