Skip to content

Commit

Permalink
test: use version from package.json when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
seleb committed Sep 25, 2021
1 parent a0f54b3 commit cfcc7fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/bitsy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { rm, writeFile } from 'fs/promises';
import { resolve } from 'path';
import puppeteer from 'puppeteer';
import util from 'util';
import pkg from '../../package.json';

const readdir = util.promisify(fs.readdir);
const readFile = util.promisify(fs.readFile);
Expand Down Expand Up @@ -41,7 +42,7 @@ async function getHackDist() {
}

async function getHackTemplate() {
return readFile(resolve(__dirname, 'bitsy 7.10.html'), {
return readFile(resolve(__dirname, `Bitsy ${pkg.bitsyVersion}.html`), {
encoding: 'utf8',
});
}
Expand Down

0 comments on commit cfcc7fa

Please sign in to comment.