diff --git a/test/lib/validators.js b/test/lib/validators.js index 8a15dc8f..dc80f3b3 100644 --- a/test/lib/validators.js +++ b/test/lib/validators.js @@ -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); +});