CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
envKeyToSetting.test.js47 linesDownload Raw Back to lib
1const envKeyToSetting = require('./envKeyToSetting');2 3const fixtures = [4	[5		'FOO',6		'foo',7	],8	[9		'//npm.pkg.github.com/:_authToken',10		'//npm.pkg.github.com/:_authToken',11	],12	[13		'_authToken',14		'_authToken',15	],16	[17		'//npm.pkg.github.com/:_authtoken',18		'//npm.pkg.github.com/:_authToken',19	],20	[21		'_authtoken',22		'_authToken',23	],24	[25		'//npm.pkg.github.com/:_auth',26		'//npm.pkg.github.com/:_auth',27	],28	[29		'_auth',30		'_auth',31	],32	[33		'//npm.pkg.github.com/:_always_auth',34		'//npm.pkg.github.com/:_always-auth',35	],36	[37		'_always_auth',38		'_always-auth',39	],40];41 42test('envKeyToSetting()', () => {43	for (const [key, expected] of fixtures) {44		expect(envKeyToSetting(key)).toBe(expected);45	}46})47 
basant307/AI_Governance_Project · CoolFace