UNPKG

hellojs-xiaotian

Version:

A clientside Javascript library for standardizing requests to OAuth2 web services (and OAuth1 - with a shim)

21 lines (14 loc) 345 B
define([], function() { describe('hello.init', function() { it('should set app credentials and options', function() { var credentials = { service: 'id' }; var options = { redirect_uri: './relative' }; hello.init(credentials, options); expect(hello.settings.redirect_uri).to.match(/\/relative/); }); }); });