mirror of
https://github.com/SamEyeBam/animate.git
synced 2025-09-28 15:05:25 +00:00
larry babby and threejs for glsl
This commit is contained in:
28
webGl/my-threejs-test/node_modules/@parcel/package-manager/test/getCurrentPackageManager.test.js
generated
vendored
Normal file
28
webGl/my-threejs-test/node_modules/@parcel/package-manager/test/getCurrentPackageManager.test.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
// @flow
|
||||
import assert from 'assert';
|
||||
import getCurrentPackageManager from '../src/getCurrentPackageManager';
|
||||
|
||||
describe('getCurrentPackageManager', () => {
|
||||
it('yarn', () => {
|
||||
const npm_config_user_agent = 'yarn/1.22.21 npm/? node/v21.1.0 darwin x64';
|
||||
const currentPackageManager = getCurrentPackageManager(
|
||||
npm_config_user_agent,
|
||||
);
|
||||
assert(currentPackageManager?.name, 'yarn');
|
||||
});
|
||||
it('npm', () => {
|
||||
const npm_config_user_agent =
|
||||
'npm/10.2.0 node/v21.1.0 darwin x64 workspaces/true';
|
||||
const currentPackageManager = getCurrentPackageManager(
|
||||
npm_config_user_agent,
|
||||
);
|
||||
assert(currentPackageManager?.name, 'npm');
|
||||
});
|
||||
it('pnpm', () => {
|
||||
const npm_config_user_agent = 'pnpm/8.14.2 npm/? node/v18.17.1 darwin x64';
|
||||
const currentPackageManager = getCurrentPackageManager(
|
||||
npm_config_user_agent,
|
||||
);
|
||||
assert(currentPackageManager?.name, 'pnpm');
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user