Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add asserts on authorize #195

Merged
merged 1 commit into from
Nov 27, 2017
Merged

test: add asserts on authorize #195

merged 1 commit into from
Nov 27, 2017

Conversation

JustinBeckwith
Copy link
Contributor

Just a few more asserts to validate that #170 doesn't pop up.

@JustinBeckwith JustinBeckwith requested review from ofrobots and a team November 26, 2017 19:38
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 26, 2017
assert.equal('foo@serviceaccount.com', jwt.gtoken.iss);
assert.equal(PEM_PATH, jwt.gtoken.keyFile);
assert.equal(['http://bar', 'http://foo'].join(' '), jwt.gtoken.scope);
assert.equal('bar@subjectaccount.com', jwt.gtoken.sub);
assert.equal('initial-access-token', jwt.credentials.access_token);
assert.equal(creds!.access_token, jwt.credentials.access_token);

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@JustinBeckwith JustinBeckwith merged commit 8389e77 into googleapis:next Nov 27, 2017
ofrobots pushed a commit to ofrobots/google-auth-library-nodejs that referenced this pull request Dec 1, 2017
ofrobots pushed a commit that referenced this pull request Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants