7digital-api
Version:
7digital API client for nodeJS
26 lines (19 loc) • 697 B
JavaScript
var expect = require('chai').expect;
describe('config', function() {
var config = require('../config');
it('should have the default consumer key', function() {
expect(config.consumerkey).to.equal('YOUR_KEY_HERE');
});
it('should have an empty oauthsecret', function() {
expect(config.consumersecret).to.equal('YOUR_SECRET_HERE');
});
it('should have the path to the schema json', function() {
expect(config.schemapath).to.match(/assets\/7digital-api-schema.json$/);
});
it('should have debug', function() {
expect(config.debug).to.equal(true);
});
it('should have the response format set to JSON by default', function() {
expect(config.format).to.equal('json');
});
});