lkml
Version:
A speedy LookML parser & serializer implemented in Typescript (port of joshtemple/lkml)
28 lines (21 loc) • 387 B
text/typescript
import { lkml } from '../src/lkml.js'
const LookML = new lkml();
let sample = `view: tickets{
label: "foo"
dimension: test1{
label: "Test"
}
}
view: +tickets{
label: "baz"
dimension: test2{
label: "Another Test"
}
}
view: +tickets{
label: "bar"
}`
let out = LookML.load(sample)
test('Testing refinements', () => {
expect(LookML.dump(out)).toBe(sample);
});