Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Union type string imported #6

Closed
Pmyl opened this issue Jan 20, 2019 · 0 comments
Closed

Union type string imported #6

Pmyl opened this issue Jan 20, 2019 · 0 comments

Comments

@Pmyl
Copy link
Collaborator

Pmyl commented Jan 20, 2019

If using a union type imported in an interface the transformers can't resolve it.

describe('union type string imported', () => {
  it('should assign the first value as if it would declared literal', () => {
    interface UnionContainer {
      union: TypeUnion;
    }

    const properties: Mock<UnionContainer> = createMock<UnionContainer>();
    expect(properties.union).toBe("1");
  });
});

The type TypeUnion is already in the codebase.

@uittorio uittorio reopened this Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants