knex/test/unit/raw.js

21 lines
414 B
JavaScript
Raw Normal View History

var Raw = require('../../lib/raw').Raw;
var Common = require('../../lib/common').Common;
2013-09-05 16:36:49 -04:00
describe('Raw', function () {
2013-09-05 16:36:49 -04:00
var raw;
beforeEach(function() {
raw = new Raw();
});
it('binds the instance to the current query', function() {
2013-09-05 16:36:49 -04:00
});
2013-09-05 16:36:49 -04:00
it('returns the value of this.sql on the `toSql` method', function() {
raw.sql = 'This is a test';
expect(raw.toSql()).to.equal(raw.sql);
2013-09-05 16:36:49 -04:00
});
});