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

Commit f07511c4 by Sushant

issue 4307 : Added the failing test

1 parent a2366463
'use strict';
/* jshint -W030 */
var chai = require('chai')
, expect = chai.expect
, Support = require(__dirname + '/../../support')
, dialect = Support.getTestDialect()
, config = require(__dirname + '/../../../config/config')
, DataTypes = require(__dirname + '/../../../../lib/data-types')
, _ = require('lodash');
if (dialect.match(/^postgres/)) {
describe('[POSTGRES Specific] Sequelize', function() {
it('should correctly parse the moment based timezone', function() {
var options = _.extend(this.sequelize.options, { timezone: 'Asia/Kolkata', timestamps: true });
var sequelize = Support.createSequelizeInstance(options);
var tzTable = sequelize.define('tz_table', { foo: DataTypes.STRING });
return tzTable.sync({force: true}).then(function() {
return tzTable.create({foo: 'test'}).then(function(row) {
expect(row).to.be.not.null;
}).catch(function(e) {
expect(e).to.be.null;
});
})
});
});
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!