permit mocha skip

This commit is contained in:
rusher
2018-03-09 18:15:14 +01:00
parent 1a9910ddc6
commit ba9fe178f9
4 changed files with 9 additions and 9 deletions

View File

@ -38,7 +38,7 @@ describe("datetime", () => {
});
});
it("date text", done => {
it("date text", function(done) {
const date = new Date("1999-01-31 12:13:14");
if (!shareConn.isMariaDB() && !shareConn.hasMinVersion(5, 6)) this.skip();
shareConn.query("select CAST(? as datetime) d", [date], (err, res) => {
@ -52,7 +52,7 @@ describe("datetime", () => {
});
});
it("date text from row", done => {
it("date text from row", function(done) {
if (!shareConn.isMariaDB() && !shareConn.hasMinVersion(5, 6)) this.skip();
shareConn.query("select * from table_date", (err, rows) => {
if (err) throw err;
@ -74,7 +74,7 @@ describe("datetime", () => {
});
});
it("date text as string", done => {
it("date text as string", function(done) {
if (!shareConn.isMariaDB() && !shareConn.hasMinVersion(5, 6)) this.skip();
const conn1 = base.createConnection({

View File

@ -4,7 +4,7 @@ const base = require("../../base.js");
const assert = require("chai").assert;
describe("json", () => {
it("insert json format", done => {
it("insert json format",function(done) {
//server permit JSON format
if (
(shareConn.isMariaDB() && !shareConn.hasMinVersion(10, 2, 7)) ||
@ -26,7 +26,7 @@ describe("json", () => {
validateJSON("test-json-insert-type", done);
});
it("insert json format binary", done => {
it("insert json format binary", function(done) {
//server permit JSON format
if (
(shareConn.isMariaDB() && !shareConn.hasMinVersion(10, 2, 7)) ||
@ -72,7 +72,7 @@ describe("json", () => {
});
}
it("select json format", done => {
it("select json format", function(done) {
//server permit JSON format
if (
(shareConn.isMariaDB() && !shareConn.hasMinVersion(10, 2, 7)) ||

View File

@ -173,7 +173,7 @@ describe("mapping", () => {
}
});
it("query mapping field", done => {
it("query mapping field", function(done) {
if (!shareConn.isMariaDB() && !shareConn.hasMinVersion(5, 6)) {
//MySQL 5.5 doesn't permit DATETIME/TIMESTAMP with microseconds
this.skip();
@ -191,7 +191,7 @@ describe("mapping", () => {
});
});
it("execute mapping field", done => {
it("execute mapping field", function(done) {
if (!shareConn.isMariaDB() && !shareConn.hasMinVersion(5, 6)) {
//MySQL 5.5 doesn't permit DATETIME/TIMESTAMP with microseconds
this.skip();

View File

@ -5,7 +5,7 @@ const assert = require("chai").assert;
const Collations = require("../../src/const/collations");
describe("connection state change", () => {
it("session state change", done => {
it("session state change", function(done) {
if (
(shareConn.isMariaDB() && !shareConn.hasMinVersion(10, 2, 2)) ||
(!shareConn.isMariaDB() && !shareConn.hasMinVersion(5, 7, 4))