Skip to content

Commit

Permalink
Merge branch 'develop' into cell-type-module-mvp2
Browse files Browse the repository at this point in the history
  • Loading branch information
bhushankhope committed Oct 2, 2024
2 parents 1b6778a + d06bcec commit e5a30fa
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions libs/ccf-body-ui/src/lib/body-ui/body-ui.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { HttpTestingController, provideHttpClientTesting } from '@angular/common
import { ErrorHandler } from '@angular/core';
import { TestBed } from '@angular/core/testing';
import { SpatialSceneNode } from '@hra-api/ng-client';
import { render, screen } from '@testing-library/angular';
import { render } from '@testing-library/angular';
import { Subject } from 'rxjs';
import { BodyUI, NodeClickEvent } from '../body-ui';
import { BodyUiComponent, XYZTriplet } from './body-ui.component';
import { Subject } from 'rxjs';

jest.mock('../body-ui.ts', () => ({
BodyUI: jest.fn().mockImplementation(() => ({
Expand Down Expand Up @@ -38,15 +38,6 @@ describe('BodyUiComponent', () => {
jest.clearAllMocks();
});

it('should render a canvas element', async () => {
await render(BodyUiComponent, { providers });

const canvasElement = screen.getByRole('img');

expect(canvasElement).toBeTruthy();
expect(canvasElement.tagName.toLowerCase()).toBe('canvas');
});

it('should set zoom according to the bounds', async () => {
const bounds: XYZTriplet = { x: 0, y: 0, z: 0 };
const {
Expand Down

0 comments on commit e5a30fa

Please sign in to comment.