Skip to content

WIP: Add tests - #35

Merged
dotneet merged 3 commits into
nuxt-modules:masterfrom
nachogarcia:master
Mar 5, 2020
Merged

dotneet merged 3 commits into
nuxt-modules:masterfrom
nachogarcia:master

Conversation

@nachogarcia

Copy link
Copy Markdown
Contributor

Hello, I wanted to contribute and thought some tests might be appreciated.

I've never created a module so I have a small issue requiring in plugin.js and testing the whole module, maybe you can give me a quick hand to finish the MR :)

@dotneet dotneet left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please revert the file separation.
plugin.js is copied by Nuxt on build time so importing another javascript using relative path fail.

@dotneet

dotneet commented Mar 1, 2020 •

Copy link
Copy Markdown
Collaborator

@nachogarcia Thank you for great PR!

I've changed some your code to pass all of tests in the branch below.
https://github.com/nuxt-community/device-module/tree/fix-tests

If you okay, I will merge this PR and cherry-pick the my change from fix-tests branch.

@nachogarcia

Copy link
Copy Markdown
Contributor Author

Looks great!

@dotneet
dotneet merged commit 4b7fc53 into nuxt-modules:master Mar 5, 2020
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