Skip to content

Commit 1566970

Browse files
committed
tests: Reuse expectationPath variable
1 parent 34da166 commit 1566970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests/debug-tools-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ function test(testcase, assertionName, ep) {
464464
let expectationExists = fs.existsSync(expectationPath);
465465

466466
if (expectationExists) {
467-
let expectation = fs.readFileSync(`./fixtures/${assertionName}/expectation.js`, 'utf-8');
467+
let expectation = fs.readFileSync(expectationPath, 'utf-8');
468468
let compiled = transform(sample, options);
469469
expect(compiled.code).to.equal(expectation);
470470

0 commit comments

Comments
 (0)