mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-31 09:41:46 +00:00
930cf6633c
fix: Additional vi.mock path corrections and prettier formatting
18 lines
437 B
TypeScript
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'),
|
|
);
|
|
});
|
|
});
|