Skip to content

Commit

Permalink
Merge pull request #64 from ORCID/sampleUnitTest
Browse files Browse the repository at this point in the history
Sample unit test
  • Loading branch information
rcpeters authored Mar 8, 2018
2 parents fedec82 + e556eff commit c021438
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"ng": "ng",
"start": "node server.js",
"lint": "tslint \"src/**/*.ts\"",
"test": "ng test --watch=false",
"test": "ng test --watch=false; ava;",
"pree2e": "webdriver-manager update --standalone false --gecko false",
"e2e": "protractor",
"postinstall": "ng build -prod"
Expand All @@ -29,7 +29,6 @@
"@angular/router": "^5.0.0",
"angular-font-awesome": "^3.1.2",
"angular2-fontawesome": "^5.2.1",
"ava": "^0.18.2",
"body-parser": "^1.16.1",
"bootstrap": "^4.0.0-alpha.6",
"core-js": "^2.4.1",
Expand All @@ -47,6 +46,7 @@
"zone.js": "^0.7.6"
},
"devDependencies": {
"ava": "^0.18.2",
"@angular/cli": "^1.7.2",
"@angular/compiler-cli": "^5.2.7",
"@types/jasmine": "2.5.38",
Expand Down
2 changes: 1 addition & 1 deletion test/getAuthUrlTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var ooau = new OcridOAuthUtil('client_id_1','client_secrect_1','https://test.com

test('test creates correct url', t => {
t.is(
'https://test.com/1?redirect_uri=getAuthUrl&scope=%2Fauthenticate&response_type=code&client_id=client_id_1&show_login=true&state=state1',
'https://test.com/1/oauth/authorize?redirect_uri=getAuthUrl&scope=%2Fauthenticate&response_type=code&client_id=client_id_1&show_login=true&state=state1',
ooau.getAuthUrl('getAuthUrl','state1')
);
});

0 comments on commit c021438

Please sign in to comment.