File tree 3 files changed +5
-5
lines changed
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.
2
2
3
3
import { promises as fs } from "fs" ;
4
4
import * 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.
2
2
3
3
/**
4
4
* Generate MATLAB command for changing directories and calling a command in it.
8
8
* @returns MATLAB command.
9
9
*/
10
10
export function cdAndCall ( command : string ) : string {
11
- return `cd(getenv('MW_ORIG_WORKING_FOLDER'));${ command } ` ;
11
+ return `cd(getenv('MW_ORIG_WORKING_FOLDER')); ${ command } ` ;
12
12
}
13
13
14
14
/**
Original file line number Diff line number Diff line change 1
- // Copyright 2020-2023 The MathWorks, Inc.
1
+ // Copyright 2020-2025 The MathWorks, Inc.
2
2
3
3
import * as script from "./script" ;
4
4
5
5
describe ( "call generation" , ( ) => {
6
6
it ( "ideally works" , ( ) => {
7
7
// I know what your thinking
8
8
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 } ` ;
10
10
11
11
expect ( script . cdAndCall ( testCommand ) ) . toMatch ( expectedString ) ;
12
12
} ) ;
You can’t perform that action at this time.
0 commit comments