Remove cartodb folder in unit test

This commit is contained in:
Daniel García Aubert
2019-10-07 11:29:07 +02:00
parent 73e1659378
commit 55aad4254c
26 changed files with 51 additions and 51 deletions
+20
View File
@@ -0,0 +1,20 @@
'use strict';
var assert = require('assert');
var dateWrapper = require('../../../lib/utils/date-wrapper');
describe('date-wrapper', function() {
it('should wrap property fields with spaces', function() {
const actual = dateWrapper.wrapDates(
'select * from table',
[{name: 'a'}, {name: 'b c'}]
);
const expected = `
SELECT
"a","b c"
FROM
(select * from table) _cdb_epoch_transformation `;
assert.equal(actual, expected);
});
});