Skip to content

Fix template string - #2470

Merged
shellscape merged 2 commits into
rollup:masterfrom
styfle:patch-1
Sep 21, 2018
Merged

Fix template string#2470
shellscape merged 2 commits into
rollup:masterfrom
styfle:patch-1

Conversation

@styfle

@styfle styfle commented Sep 21, 2018

Copy link
Copy Markdown
Contributor

This PR contains:

  • bugfix

Are tests included?

  • yes (bugfixes and features will not be merged without tests)

Breaking Changes?

  • no

List any relevant issue numbers:

Description

This error message should probably use a template string so that pluginName is not a literal but it's value is printed instead.

@styfle

styfle commented Sep 21, 2018

Copy link
Copy Markdown
Contributor Author

Should I add one more assert to check the error message string includes the plugin name?

assert.equal(err.pluginCode, 'DUPLICATE_PLUGIN_NAME');

Maybe something like assert.equal(err.message.includes(plugin), true);

@shellscape

Copy link
Copy Markdown
Contributor

@styfle nice catch! yes, please do add a test. definitely would not hurt.

@styfle

styfle commented Sep 21, 2018

Copy link
Copy Markdown
Contributor Author

@shellscape Done!

@shellscape
shellscape merged commit 2d2ae21 into rollup:master Sep 21, 2018
@shellscape

Copy link
Copy Markdown
Contributor

thanks!

@styfle
styfle deleted the patch-1 branch September 21, 2018 20:40
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