forked from typeorm/typeorm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
issue-6066.ts
22 lines (18 loc) · 835 Bytes
/
issue-6066.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import "reflect-metadata";
import {createTestingConnections, closeTestingConnections} from "../../utils/test-utils";
import {QueryFailedError, Connection} from "../../../src";
import {Session} from "./entity/Session";
import {expect} from "chai";
describe("github issues > #6066 Column comment string is not escaped during synchronization", () => {
let connections: Connection[];
before(async () => connections = await createTestingConnections({
entities: [Session],
enabledDrivers: ["mysql", "mariadb"],
schemaCreate: false,
dropSchema: true,
}));
after(() => closeTestingConnections(connections));
it("should synchronize", () => Promise.all(connections.map(connection => {
return expect(connection.synchronize()).to.not.be.rejectedWith(QueryFailedError);
})));
});