Skip to content

'Stubbing of method types#get using parameters () wasn't finished (missing thenReturn()).' #582

@jazminebarroga

Description

@jazminebarroga

Hello, I'm using the new Swift Testing framework (the issue doesn't happen when I convert the tests to XCTest) and I have the following stub

        stub(manager) { stub in
            when(stub.types.get)
                .thenReturn(nil)
        }

and I'm getting the error 'Stubbing of method types#get using parameters () wasn't finished (missing thenReturn()).' What does it mean when it says it wasn't finished?

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