Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: b3842df800
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (16 sloc) 0.817 kB
describe 'requiring gapi module', ->
it 'should contain the server namespace', ->
gapi = require '../index' 'server'
describe 'server namespace', ->
it 'shoud contain the setApiKey function', -> 'setApiKey' 'function'
describe 'calling setApiKey', ->
it 'should set config.api.key to the value of first parameter', ->
gapi.server.setApiKey 'AIzaSyB14Ua7k5_wusxHTQEH3sqmglO7MHjHPCI'
config = require '../lib/'
config.api.key.should.equal 'AIzaSyB14Ua7k5_wusxHTQEH3sqmglO7MHjHPCI'
it 'should contain the load function', -> 'load' 'function'
Jump to Line
Something went wrong with that request. Please try again.