Sha256: 57582c95c795129bb87457bd8671d60f0b8b856352cc5ee501d49c8ac068afe0

Contents?: true

Size: 709 Bytes

Versions: 33

Compression:

Stored size: 709 Bytes

Contents

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);
	}
})

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.59 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.58 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.57 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.56 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.55 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.54 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.53 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.52 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.51 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.50 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.49 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.48 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.47 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.46 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.45 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.44 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.43 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.42 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js
immosquare-cleaner-0.1.41 node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js