Skip to content

Commit

Permalink
Added unit test for iOS and Android redirect uris
Browse files Browse the repository at this point in the history
  • Loading branch information
KarthikBhaskara committed Jul 11, 2018
1 parent 0dc3789 commit 2615888
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/lib/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,15 @@ test('invalid development parameter', function(t) {
t.throws(() =>
validators.validateRequestData(requestData), errors.ValidationError);
});

test('iOS and Android redirect uri', function(t) {
const requestData = {
clientId: CLIENT_ID,
clientSecret: CLIENT_SECRET,
redirectUri: 'sc4a1b01e5-0497-417c-a30e-6df6ba33ba46://callback',
scope: ['read_odometer', 'read_vehicle_info'],
};

t.notThrows(() =>
validators.validateRequestData(requestData), errors.ValidationError);
});

0 comments on commit 2615888

Please sign in to comment.