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 missing function alias for ES module #509

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

Trim
Copy link
Contributor

@Trim Trim commented Mar 20, 2023

I'm using testdouble as an ES module (with import * from 'testdouble') and I wasn't able to use the td.function(), but only the td.func() alias.

It seems the index.mjs forgot to export the name function.

This patch fix it by adding an alias for func in the index.mjs file.

I didn't find where to add a test for this, I'll do it if you can give me some insights.

@searls searls merged commit e472346 into testdouble:main Mar 20, 2023
@searls
Copy link
Member

searls commented Mar 20, 2023

Oops!

Fixed in testdouble@3.17.1

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.

None yet

2 participants