|
|
@@ -10,12 +10,17 @@ describe('isTruthyEnvValue', () => {
|
|
|
expect(isTruthyEnvValue(value)).toBe(true);
|
|
|
});
|
|
|
|
|
|
- test.each([undefined, '', '0', 'false', 'no', 'off', 'anything'])(
|
|
|
- '%p is not truthy',
|
|
|
- (value) => {
|
|
|
- expect(isTruthyEnvValue(value)).toBe(false);
|
|
|
- },
|
|
|
- );
|
|
|
+ test.each([
|
|
|
+ undefined,
|
|
|
+ '',
|
|
|
+ '0',
|
|
|
+ 'false',
|
|
|
+ 'no',
|
|
|
+ 'off',
|
|
|
+ 'anything',
|
|
|
+ ])('%p is not truthy', (value) => {
|
|
|
+ expect(isTruthyEnvValue(value)).toBe(false);
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
describe('isPluginDisabledByEnv', () => {
|