mirror of
https://github.com/mariadb-corporation/mariadb-connector-nodejs.git
synced 2025-08-19 01:23:19 +00:00
permit mocha skip
This commit is contained in:
@ -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({
|
||||
|
@ -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)) ||
|
||||
|
@ -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();
|
||||
|
@ -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))
|
||||
|
Reference in New Issue
Block a user