mirror of
https://github.com/encounter/yarn.git
synced 2026-03-30 11:43:44 -07:00
13 lines
424 B
JavaScript
13 lines
424 B
JavaScript
/* @flow */
|
|
|
|
import {getPathKey} from '../src/constants.js';
|
|
|
|
test('getPathKey', () => {
|
|
expect(getPathKey('win32', {PATH: 'foobar'})).toBe('PATH');
|
|
expect(getPathKey('win32', {Path: 'foobar'})).toBe('Path');
|
|
expect(getPathKey('win32', {PaTh: 'foobar'})).toBe('PaTh');
|
|
expect(getPathKey('win32', {})).toBe('Path');
|
|
expect(getPathKey('linux', {})).toBe('PATH');
|
|
expect(getPathKey('darwin', {})).toBe('PATH');
|
|
});
|