/
githubmirror
/
yarn
Обзор
Документация
Войти
/
githubmirror
/
yarn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
__tests__/constants.js
12 строк
424 B
sth
chore(config): Use config.production instead of isProduction() (#4824)
02 ноя 2017, 13:56
02 ноя 2017, 13:56
e70c067
Код
Авторство
О чём код?
/* @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'); });