Skip to content

How to create a stub for relation models #6202

@somu1251

Description

@somu1251

I have created hasManyThrough relation for 2 model

Like: this.repository.operations(id).create(operation);

I am able to create operation and relation for it. But when I am trying to write test cases for those methods having issues.

repository.stubs.create.resolves('test');

can anyone help me to create stub for this.repository.operations(id).create(operation);

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions