Skip to content

Commit

Permalink
build(app): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
9inpachi committed Apr 11, 2021
1 parent 40bbba0 commit d480aef
Showing 1 changed file with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,26 @@ import { MatSliderChange } from '@angular/material/slider';
import { EventDisplayService } from '../../../services/event-display.service';
import { PhoenixUIModule } from '../../phoenix-ui.module';

describe('ObjectClippingComponent', () => {
fdescribe('ObjectClippingComponent', () => {
let component: ObjectClippingComponent;
let fixture: ComponentFixture<ObjectClippingComponent>;

const mockEventDisplay = jasmine.createSpyObj('EventDisplayService', {
getUIManager: jasmine.createSpyObj('UIService', [
'rotateClipping',
'setClipping',
]),
});
const mockUIManager = jasmine.createSpyObj('UIManager', [
'rotateClipping',
'setClipping',
]);

const mockEventDisplay = {
getUIManager: jasmine.createSpy().and.returnValue(mockUIManager),
getStateManager: () => ({
clippingEnabled: {
onUpdate: jasmine.createSpy('onUpdate'),
},
clippingAngle: {
onUpdate: jasmine.createSpy('onUpdate'),
},
}),
};

beforeEach(() => {
TestBed.configureTestingModule({
Expand Down

0 comments on commit d480aef

Please sign in to comment.