P.S: I think all of the elements services specs (not just prompt spec) should have these unit tests
it('should be created', () => {
expect(service).toBeTruthy();
});
// should have state and data
it('should have state and data', () => {
expect(service.state).toBeTruthy();
expect(service.state.data).toBeTruthy();
});
// should have attributes
it('should have attributes', () => {
expect(service.state.attributes).toBeTruthy();
});
// should have subject
it('should have subject', () => {
expect(service.subject).toBeTruthy();
});
// should have _state
it('should have _state', () => {
expect(service._state).toBeTruthy();
});
prompt.service.spec.tsis not having any test in it.P.S: I think all of the elements services specs (not just prompt spec) should have these unit tests
https://github.com/PointMotionInc/activity-experience/blob/41fe5e8b0d79649c675224000901d351496e8326/src/app/services/elements/prompt/prompt.service.spec.ts