mirror of
https://github.com/beekeeper-studio/beekeeper-studio.git
synced 2026-03-13 10:12:54 +08:00
15 lines
385 B
JavaScript
15 lines
385 B
JavaScript
import { SqlServerData } from "@/shared/lib/dialects/sqlserver"
|
|
|
|
|
|
describe("SQL Server Dialect data", () => {
|
|
test("should wrapIdentifiers with proper escaping", () => {
|
|
const testCases = [
|
|
["my[socks]", "[my[socks]]]"],
|
|
["[foobar]", "[[foobar]]]"]
|
|
]
|
|
testCases.forEach(([i, exp]) => {
|
|
expect(SqlServerData.wrapIdentifier(i)).toEqual(exp)
|
|
})
|
|
})
|
|
})
|