mirror of
https://github.com/knex/knex.git
synced 2025-09-26 00:24:19 +00:00
21 lines
416 B
JavaScript
21 lines
416 B
JavaScript
var Raw = require('../../lib/raw').Raw;
|
|
var Common = require('../../lib/common').Common;
|
|
|
|
describe('Raw', function () {
|
|
|
|
var raw;
|
|
beforeEach(function() {
|
|
raw = new Raw({});
|
|
});
|
|
|
|
it('binds the instance to the current query', function() {
|
|
|
|
});
|
|
|
|
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);
|
|
});
|
|
|
|
});
|