不要怂,就是干,撸起袖子干!

Commit ef1ab8cb by Sascha Depold

fix reference to Utils (which is broken due to the removal of global Utils)

1 parent 9fdc0b80
Showing with 1 additions and 2 deletions
...@@ -2,7 +2,6 @@ if(typeof require === 'function') { ...@@ -2,7 +2,6 @@ if(typeof require === 'function') {
const buster = require("buster") const buster = require("buster")
, Helpers = require('./buster-helpers') , Helpers = require('./buster-helpers')
, dialect = Helpers.getTestDialect() , dialect = Helpers.getTestDialect()
} }
var qq = function(str) { var qq = function(str) {
...@@ -137,7 +136,7 @@ describe(Helpers.getTestDialectTeaser("Sequelize"), function() { ...@@ -137,7 +136,7 @@ describe(Helpers.getTestDialectTeaser("Sequelize"), function() {
it('destructs dot separated attributes when doing a raw query', function(done) { it('destructs dot separated attributes when doing a raw query', function(done) {
var tickChar = (dialect === 'postgres') ? '"' : '`' var tickChar = (dialect === 'postgres') ? '"' : '`'
, sql = "select 1 as " + Utils.addTicks('foo.bar.baz', tickChar) , sql = "select 1 as " + Helpers.Sequelize.Utils.addTicks('foo.bar.baz', tickChar)
this.sequelize.query(sql, null, { raw: true }).success(function(result) { this.sequelize.query(sql, null, { raw: true }).success(function(result) {
expect(result).toEqual([ { foo: { bar: { baz: 1 } } } ]) expect(result).toEqual([ { foo: { bar: { baz: 1 } } } ])
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!