Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

feat: generate metadata object automatically #6

Merged
merged 2 commits into from
Aug 2, 2018
Merged

Conversation

watson
Copy link
Contributor

@watson watson commented Aug 1, 2018

Notice this PR goes to the api-v2 branch

test/test.js Outdated
t.throws(() => new Client({agentName: 'foo', agentVersion: 'foo', userAgent: 'foo'}))
t.throws(() => new Client({agentName: 'foo', serviceName: 'foo', userAgent: 'foo'}))
t.throws(() => new Client({agentVersion: 'foo', serviceName: 'foo', userAgent: 'foo'}))
t.doesNotThrow(() => new Client({agentName: 'foo', agentVersion: 'foo', serviceName: 'foo', userAgent: 'foo'}))
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you provide messages for these assertions, so it's clear what these are testing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Copy link
Contributor

@Qard Qard left a comment

Choose a reason for hiding this comment

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

LGTM other than some test messages that could be added, for context.

@watson watson merged commit be7bb12 into elastic:api-v2 Aug 2, 2018
@watson watson deleted the v2-1 branch August 2, 2018 18:17
watson added a commit that referenced this pull request Aug 6, 2018
watson added a commit that referenced this pull request Nov 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants