Skip to content

Commit

Permalink
some console printing
Browse files Browse the repository at this point in the history
  • Loading branch information
kavigupta committed Sep 1, 2024
1 parent 67d707c commit 979dff8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion react/test/mapper_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import { TARGET, download_or_check_string, most_recent_download_path, screencap
const fs = require('fs');

async function check_geojson(t, path) {
await download_or_check_string(t, fs.readFileSync(most_recent_download_path(), 'utf8'), path);
const most_recent_download_path = most_recent_download_path();
console.log("Most recent download: " + most_recent_download_path);
const most_recent_download = fs.readFileSync(most_recent_download_path, 'utf8');
console.log("Most recent download: " + most_recent_download);
await download_or_check_string(t, most_recent_download, path);
}

fixture('mapping')
Expand Down
1 change: 1 addition & 0 deletions react/test/test_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export function most_recent_download_path() {
const files = fs.readdirSync(downloadsFolder());
const sorted = files.map(x => path.join(downloadsFolder(), x)).sort((a, b) => fs.statSync(b).mtimeMs - fs.statSync(a).mtimeMs);

console.log("Most recent download: " + sorted[0]);
return sorted[0];
}

Expand Down

0 comments on commit 979dff8

Please sign in to comment.