Skip to content

prompt.service.spec.ts not having any tests #84

Description

@mohanvaddi

prompt.service.spec.ts is 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

 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();
  });

https://github.com/PointMotionInc/activity-experience/blob/41fe5e8b0d79649c675224000901d351496e8326/src/app/services/elements/prompt/prompt.service.spec.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions