mirror of
https://github.com/beekeeper-studio/beekeeper-studio.git
synced 2026-03-13 10:12:54 +08:00
20 lines
423 B
JavaScript
20 lines
423 B
JavaScript
import { FormatterDialect } from "@shared/lib/dialects/models"
|
|
|
|
|
|
|
|
describe("lib/models", () => {
|
|
it("should properly identify formatter dialects", () => {
|
|
const inputs = [
|
|
['postgresql', 'postgresql'],
|
|
['redshift', 'redshift'],
|
|
['foobar', 'mysql'],
|
|
['mysql', 'mysql'],
|
|
['sqlite', 'sqlite']
|
|
]
|
|
|
|
inputs.forEach(([i, o]) => {
|
|
expect(FormatterDialect(i)).toBe(o)
|
|
})
|
|
})
|
|
})
|