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

Add tests for misc types and type guards #78

Merged
merged 1 commit into from
Feb 10, 2023
Merged

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Feb 10, 2023

Type tests have been added for some types and type guards in misc.ts.

Type tests have been added for some types and type guards in `misc.ts`.
@Gudahtt Gudahtt marked this pull request as ready for review February 10, 2023 18:16
@Gudahtt Gudahtt requested a review from a team as a code owner February 10, 2023 18:16
}

//=============================================================================
// hasProperty
Copy link
Member Author

@Gudahtt Gudahtt Feb 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some gaps in these tests; to be addressed in a later PR (edit: #79)

Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!


expectNotAssignable<RuntimeObject>(Symbol('test'));

// The RuntimeObject type gets confused by interfaces. This interface is a valid object,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, interesting! Good catch.

@Gudahtt Gudahtt merged commit 7f9e857 into main Feb 10, 2023
@Gudahtt Gudahtt deleted the add-misc-type-tests branch February 10, 2023 19:58
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

Successfully merging this pull request may close these issues.

2 participants