test('logger factory functionality', t => { var inst = logger('test'); t.true(isFunction(logger), 'The logger module should export a function'); t.is(inst.name, 'debug', 'Invoking the function should return an instance of the debug module'); t.notThrows(() => logger(), 'Should be able to create an instance of the logger without providing a namespace'); });
test('Can request homepage', t => { t.notThrows(request(authToken, '/')); });
test('Requesting API should work if loggedin', t => { t.notThrows(request(authToken, '/api/account/verify_credentials.xml')); });