Skip to content

Commit 2828c5d

Browse files
committed
pass testFile to test load
1 parent f08a68c commit 2828c5d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

lib/modules/tests/test-run/load.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
22
function loadTaskTests(_a) {
3-
var dir = _a.dir, tutorial = _a.tutorial, tests = _a.tests, pagePosition = _a.pagePosition, load = _a.load;
4-
load({ dir: dir, tutorial: tutorial, tests: tests, pagePosition: pagePosition });
3+
var dir = _a.dir, tests = _a.tests, load = _a.load, testFile = _a.testFile;
4+
load({ dir: dir, tests: tests, testFile: testFile });
55
}
66
Object.defineProperty(exports, "__esModule", { value: true });
77
exports.default = loadTaskTests;

src/modules/tests/actions.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export function testLoad() {
66
return (dispatch, getState): void => {
77
const { dir, pagePosition, tutorial, taskTests } = getState();
88
const testFile = getTestName({tutorial, pagePosition});
9+
console.log('testLoad file', testFile);
910

1011
dispatch({
1112
type: TEST_LOAD, payload: {

src/modules/tests/test-run/load.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export default function loadTaskTests({dir, tutorial, tests, pagePosition, load}) {
2-
load({dir, tutorial, tests, pagePosition});
1+
export default function loadTaskTests({dir, tests, load, testFile}) {
2+
load({dir, tests, testFile});
33
}

0 commit comments

Comments
 (0)