Files
renovate/lib/modules/manager/bazel-module/parser/starlark.spec.ts
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00

18 lines
437 B
TypeScript

import * as starlark from './starlark.ts';
describe('modules/manager/bazel-module/parser/starlark', () => {
it.each`
a | exp
${'True'} | ${true}
${'False'} | ${false}
`('.asBoolean($a)', ({ a, exp }) => {
expect(starlark.asBoolean(a)).toBe(exp);
});
it('asBoolean', () => {
expect(() => starlark.asBoolean('bad')).toThrow(
new Error('Invalid Starlark boolean string: bad'),
);
});
});