File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- // Copyright 2020-2023 The MathWorks, Inc.
1+ // Copyright 2020-2025 The MathWorks, Inc.
22
33import { promises as fs } from "fs" ;
44import * as os from "os" ;
Original file line number Diff line number Diff line change 1- // Copyright 2020-2023 The MathWorks, Inc.
1+ // Copyright 2020-2025 The MathWorks, Inc.
22
33/**
44 * Generate MATLAB command for changing directories and calling a command in it.
88 * @returns MATLAB command.
99 */
1010export function cdAndCall ( command : string ) : string {
11- return `cd(getenv('MW_ORIG_WORKING_FOLDER'));${ command } ` ;
11+ return `cd(getenv('MW_ORIG_WORKING_FOLDER')); ${ command } ` ;
1212}
1313
1414/**
Original file line number Diff line number Diff line change 1- // Copyright 2020-2023 The MathWorks, Inc.
1+ // Copyright 2020-2025 The MathWorks, Inc.
22
33import * as script from "./script" ;
44
55describe ( "call generation" , ( ) => {
66 it ( "ideally works" , ( ) => {
77 // I know what your thinking
88 const testCommand = "disp('hello world')" ;
9- const expectedString = `cd(getenv('MW_ORIG_WORKING_FOLDER'));${ testCommand } ` ;
9+ const expectedString = `cd(getenv('MW_ORIG_WORKING_FOLDER')); ${ testCommand } ` ;
1010
1111 expect ( script . cdAndCall ( testCommand ) ) . toMatch ( expectedString ) ;
1212 } ) ;
You can’t perform that action at this time.
0 commit comments