Skip to content

Commit

Permalink
add no-args test, #384
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Nov 12, 2024
1 parent 3a9a361 commit a69404f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/test/test-exec-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ omitted: undefined
</output>` ), 'result should correctly parse and output the options' );
};

qunit.test( 'grunt', ( assert: Assert ) => {
qunit.test( 'grunt no args', ( assert: Assert ) => {
const result = execSync( `${gruntCommand} test-grunt`, EXEC_SYNC_OPTIONS );
assert.ok( result.match( /: undefined/g )?.length === 4, 'no args, all undefined' );
} );

qunit.test( 'grunt args', ( assert: Assert ) => {
const result = execSync( `${gruntCommand} test-grunt --brands=a,b,c --lint=false --noTSC`, EXEC_SYNC_OPTIONS );
checkOutput( result, assert );
} );
Expand All @@ -49,6 +54,7 @@ qunit.test( 'sage run', assert => {
checkOutput( result, assert );
} );

// Sim-specific
qunit.test( `grunt ${SIM}`, ( assert: Assert ) => {
const result = execSync( `${gruntCommand} --brands=a,b,c --lint=false --noTSC --test-options`, EXEC_AND_SIM_OPTIONS );
checkOutput( result, assert );
Expand Down

0 comments on commit a69404f

Please sign in to comment.