node-onesky-utils
Version:
Node.js utils for working with OneSky translation service. Original package from @brainly/onesky-utils
19 lines (15 loc) • 518 B
JavaScript
;
const globals = rootRequire('lib/globals.js');
describe('globals', function() {
describe('apiAddress', function() {
it('should have the correct OneSky API address', function() {
expect(globals.apiAddress).to.equal('https://platform.api.onesky.io');
});
it('should be a string', function() {
expect(globals.apiAddress).to.be.a('string');
});
it('should be a valid HTTPS URL', function() {
expect(globals.apiAddress).to.match(/^https:\/\/.+/);
});
});
});