Skip to content

Fix add plugin unit test#780

Merged
teobugslayer merged 1 commit into
masterfrom
totev/fix-plugin-check-ver
Aug 13, 2015
Merged

Fix add plugin unit test#780
teobugslayer merged 1 commit into
masterfrom
totev/fix-plugin-check-ver

Conversation

@teobugslayer
Copy link
Copy Markdown
Contributor

Npm has a global configuration to save dependencies with exact versions or as ^ ones. This unit test must work in both configurations. Therefore, we check for one of the two possible outcomes.

Also, small code cleanups.

@teobugslayer teobugslayer added this to the 1.3.0 milestone Aug 13, 2015
@ns-bot
Copy link
Copy Markdown

ns-bot commented Aug 13, 2015

Comment thread test/plugins-service.ts
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we use deepEqual here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

_.isEqual compares deeply

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

so we consider both syntax are correct (^1.0.3 and 1.0.3) ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, I have updated PR description.

@Fatme
Copy link
Copy Markdown
Contributor

Fatme commented Aug 13, 2015

👍 after rebasing on master

@teobugslayer teobugslayer force-pushed the totev/fix-plugin-check-ver branch from 09c560b to b14d4b7 Compare August 13, 2015 08:54
@ns-bot
Copy link
Copy Markdown

ns-bot commented Aug 13, 2015

Comment thread test/plugins-service.ts
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

or maybe ${pluginName}@1.0.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We agreed to leave the code as is.

Small code cleanups
@teobugslayer teobugslayer force-pushed the totev/fix-plugin-check-ver branch from b14d4b7 to 07bf8d9 Compare August 13, 2015 10:26
@ns-bot
Copy link
Copy Markdown

ns-bot commented Aug 13, 2015

@rosen-vladimirov
Copy link
Copy Markdown
Contributor

👍

teobugslayer added a commit that referenced this pull request Aug 13, 2015
@teobugslayer teobugslayer merged commit 2d2ff89 into master Aug 13, 2015
@teobugslayer teobugslayer deleted the totev/fix-plugin-check-ver branch August 13, 2015 10:32
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.

4 participants