UNPKG

react-native-integrate

Version:

Automate integration of additional code into React Native projects

16 lines (15 loc) 636 B
"use strict"; /* eslint-disable @typescript-eslint/no-unsafe-call */ Object.defineProperty(exports, "__esModule", { value: true }); require('../../mocks/mockAll'); const parseArgs_1 = require("../../../utils/parseArgs"); describe('parseArgs', () => { it('should parse args correctly', () => { const args = (0, parseArgs_1.parseArgs)('arg1 "arg2 arg3" arg4'); expect(args).toEqual(['arg1', 'arg2 arg3', 'arg4']); }); it('should parse escaped args correctly', () => { const args = (0, parseArgs_1.parseArgs)('arg1 "arg\\"2 a\\"rg3"'); expect(args).toEqual(['arg1', 'arg"2 a"rg3']); }); });