Initial commit

This commit is contained in:
zhongjin
2020-06-15 10:58:47 +08:00
commit 4f1dfe7564
8590 changed files with 1516878 additions and 0 deletions
@@ -0,0 +1,29 @@
var ConfigModel = require('builder/data/config-model');
describe('data/config-model', function () {
beforeEach(function () {
this.model = new ConfigModel();
});
describe('.urlVersion', function () {
beforeEach(function () {
this.version = this.model.urlVersion();
});
it('should return v1 by default', function () {
expect(this.version).toEqual('v1');
});
});
describe('.getSqlApiUrl', function () {
beforeEach(function () {
this.url = this.model.getSqlApiUrl();
});
it('should return a API url', function () {
expect(this.url).toEqual(jasmine.any(String));
expect(this.url).toContain('/sql');
});
});
});