frontend/.pnpm-store/v3/files/bd/260eead3720cfff3ac65b914c1c15a8a0a951507da707361d3acfea702ef3a6c982b73e91ab0e110859b017d2ba8949924ad59fb5049265fe48ebc444284c3

47 lines
709 B
Plaintext

const envKeyToSetting = require('./envKeyToSetting');
const fixtures = [
[
'FOO',
'foo',
],
[
'//npm.pkg.github.com/:_authToken',
'//npm.pkg.github.com/:_authToken',
],
[
'_authToken',
'_authToken',
],
[
'//npm.pkg.github.com/:_authtoken',
'//npm.pkg.github.com/:_authToken',
],
[
'_authtoken',
'_authToken',
],
[
'//npm.pkg.github.com/:_auth',
'//npm.pkg.github.com/:_auth',
],
[
'_auth',
'_auth',
],
[
'//npm.pkg.github.com/:_always_auth',
'//npm.pkg.github.com/:_always-auth',
],
[
'_always_auth',
'_always-auth',
],
];
test('envKeyToSetting()', () => {
for (const [key, expected] of fixtures) {
expect(envKeyToSetting(key)).toBe(expected);
}
})