Skip to content

Commit

Permalink
resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
asliayk committed Jan 14, 2025
1 parent a2131b9 commit 34400e9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ChannelsCreateDialogComponent } from 'app/overview/course-conversations
import { ArtemisTranslatePipe } from 'app/shared/pipes/artemis-translate.pipe';
import { MockPipe, MockProvider } from 'ng-mocks';
import { Course } from 'app/entities/course.model';
import { ChannelFormData } from 'app/overview/course-conversations/dialogs/channels-create-dialog/channel-form/channel-form.component';
import { ChannelFormComponent, ChannelFormData } from 'app/overview/course-conversations/dialogs/channels-create-dialog/channel-form/channel-form.component';
import { By } from '@angular/platform-browser';
import { ChannelDTO } from 'app/entities/metis/conversation/channel.model';
import { initializeDialog } from '../dialog-test-helpers';
Expand Down Expand Up @@ -77,7 +77,7 @@ describe('ChannelsCreateDialogComponent', () => {

it('should change channel scope type when channel scope type is changed in channel form', () => {
expect(component.isCourseWideChannel).toBeFalse();
const form: ChannelFormStubComponent = fixture.debugElement.query(By.directive(ChannelFormStubComponent)).componentInstance;
const form: ChannelFormComponent = fixture.debugElement.query(By.directive(ChannelFormComponent)).componentInstance;
form.isCourseWideChannelChanged.emit(true);
expect(component.isCourseWideChannel).toBeTrue();
});
Expand Down Expand Up @@ -117,7 +117,7 @@ describe('ChannelsCreateDialogComponent', () => {
isCourseWideChannel: false,
};

const form: ChannelFormStubComponent = fixture.debugElement.query(By.directive(ChannelFormStubComponent)).componentInstance;
const form: ChannelFormComponent = fixture.debugElement.query(By.directive(ChannelFormComponent)).componentInstance;
form.formSubmitted.emit(formData);

expect(createChannelSpy).toHaveBeenCalledOnce();
Expand Down

0 comments on commit 34400e9

Please sign in to comment.