Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Avoid repeated indexOf checks in tests #273

Merged
merged 1 commit into from
Jun 7, 2017
Merged

Avoid repeated indexOf checks in tests #273

merged 1 commit into from
Jun 7, 2017

Conversation

matthewloring
Copy link
Contributor

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 6, 2017
Copy link
Contributor

@ofrobots ofrobots left a comment

Choose a reason for hiding this comment

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

Ah, so much more readable. LGTM with minor nit.

assert(bp.status.description.format.indexOf(
'foo.js:500') !== -1);
assert(bp.status.description.format.match(
api.messages.INVALID_LINE_NUMBER + '.*foo.js:500'));

This comment was marked as spam.

@matthewloring matthewloring merged commit adcf3ae into googleapis:master Jun 7, 2017
@matthewloring matthewloring deleted the regex branch June 7, 2017 00:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants