Skip to content

Commit 8a12d07

Browse files
authored
Merge pull request #1418 from mathjax/fix/windows-tests
Fix/windows tests
2 parents 58c556a + 9401d25 commit 8a12d07

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

testsuite/src/constants.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
export const tmpJsonFile = '/tmp/test.json';
1+
import * as os from 'os';
2+
3+
export const tmpJsonFile = os.tmpdir() + '/test.json';
4+
export const ESC = '\u001B';
5+

testsuite/src/texReporter.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
* Custom reporter for tex macro coverage.
33
*/
44

5-
import {tmpJsonFile} from './constants.js';
5+
import { tmpJsonFile, ESC } from './constants.js';
66
import * as fs from 'fs';
77

8-
const ESC = '\u001B';
9-
108
export default class TexReporter {
119

1210
constructor(globalConfig, reporterOptions, reporterContext) {

0 commit comments

Comments
 (0)