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

Added initial set of tests for vsoClient #218

Merged
merged 8 commits into from
Sep 20, 2018
Merged

Added initial set of tests for vsoClient #218

merged 8 commits into from
Sep 20, 2018

Conversation

damccorm
Copy link

Divided into unit/non-unit tests, currently no non-unit tests added.

Addresses #217

@damccorm
Copy link
Author

@stephenmichaelf I think I was pretty much able to cover this with L0 tests, did you have anything specific in mind that should be tested at L1 level? Or was that more for expanding this to other APIs in the future?

CONTRIBUTING.md Outdated Show resolved Hide resolved
make.js Outdated Show resolved Hide resolved
@stephenmichaelf
Copy link
Member

Are you now able to make PRs from the repo instead of your fork? Want to make sure permissions are correct.

target.test = function() {
target.units();
Copy link
Member

Choose a reason for hiding this comment

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

In the previous version you had one more test here, did you mean to remove that too?

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, that was the test that had been a placeholder which I got rid of

@@ -6,8 +6,9 @@
"types": "./WebApi.d.ts",
"scripts": {
"build": "node make.js build",
"samples": "node make.js samples && node samples/run.js",
Copy link
Member

Choose a reason for hiding this comment

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

Can we make this run like the other samples? For the other ones we do e.g. - npm run samples creation... for this we can do npm run samples react?

Copy link
Author

Choose a reason for hiding this comment

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

Was this meant to be on this PR microsoft/typed-rest-client#86? The react sample is in typed-rest-client and I think this one already exhibits that behavior, I might be misunderstanding the comment though.

let rest: rm.RestClient;
let vsoClient: vsom.VsoClient
const baseUrl: string = 'https://dev.azure.com/';
before(() => {
Copy link
Member

Choose a reason for hiding this comment

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

Nit: add line between const and before.

@damccorm
Copy link
Author

Yes, I am now able to make PRs from the repo

@damccorm damccorm merged commit e88c657 into microsoft:master Sep 20, 2018
@damccorm damccorm deleted the issue-217 branch September 21, 2018 20:28
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.

None yet

2 participants