Skip to content

Commit

Permalink
tests top level imagefs
Browse files Browse the repository at this point in the history
  • Loading branch information
thgreasi committed Dec 30, 2024
1 parent 237cf09 commit 85d3eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/commands/os/configure.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import * as process from 'process';
import { runCommand } from '../../helpers';
import { promisify } from 'util';
import * as tmp from 'tmp';
import * as imagefs from 'balena-image-fs';

tmp.setGracefulCleanup();
const tmpNameAsync = promisify(tmp.tmpName);
Expand Down Expand Up @@ -70,7 +71,6 @@ if (process.platform !== 'win32') {
expect(err.join('')).to.equal('');

// confirm the image contains a config.json...
const imagefs = await import('balena-image-fs');
const config = await imagefs.interact(tmpDummyPath, 1, async (_fs) => {
return await promisify(_fs.readFile)('/config.json');
});
Expand Down

0 comments on commit 85d3eef

Please sign in to comment.