@@ -99,7 +99,7 @@ describe('locator', () => {
9999 assert . propertyVal ( childPointer , 'cliOption' , 'cli value' ) ;
100100 } ) ;
101101
102- it ( 'should return cli option set with --option=value syntax ' , ( ) => {
102+ it ( 'should return cli option set with --option="cli value" ' , ( ) => {
103103 const pointer = locatorWithArgv ( [
104104 '--option=cli value'
105105 ] ) ;
@@ -108,7 +108,7 @@ describe('locator', () => {
108108 assert . propertyVal ( childPointer , 'cliOption' , 'cli value' ) ;
109109 } ) ;
110110
111- it ( 'should allow to have = sign inside option set with --option=value syntax ' , ( ) => {
111+ it ( 'should allow to have = sign inside option set with --option="cli= value" ' , ( ) => {
112112 const pointer = locatorWithArgv ( [
113113 '--option=cli=value'
114114 ] ) ;
@@ -117,6 +117,16 @@ describe('locator', () => {
117117 assert . propertyVal ( childPointer , 'cliOption' , 'cli=value' ) ;
118118 } ) ;
119119
120+ it ( 'should allow to have = sign inside option set with --option "cli=value"' , ( ) => {
121+ const pointer = locatorWithArgv ( [
122+ '--option' ,
123+ 'cli=value'
124+ ] ) ;
125+ const childPointer = pointer . nested ( 'option' ) ;
126+
127+ assert . propertyVal ( childPointer , 'cliOption' , 'cli=value' ) ;
128+ } ) ;
129+
120130 it ( 'should use last value of an option' , ( ) => {
121131 const pointer = locatorWithArgv ( [
122132 '--option=first' ,
0 commit comments