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 4338767
Showing 1 changed file with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,22 @@ describe('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 4338767

Please sign in to comment.