fix(tests/settings): Improve test assertions and update local settings permissions

This commit is contained in:
2025-05-21 13:26:29 +00:00
parent a9660eda9a
commit fda1543701
4 changed files with 11 additions and 9 deletions

View File

@@ -57,7 +57,7 @@ tap.test('StreamFile should return content as a buffer', async () => {
tap.test('StreamFile should return content as a string', async () => {
const streamFile = await smartfile.StreamFile.fromPath(path.join(testAssetsPath, 'mytest.json'));
const contentString = await streamFile.getContentAsString();
expect(typeof contentString).toBeTypeofString();
expect(contentString).toBeTypeofString();
// Verify the content matches what's expected
// This assumes the file contains a JSON object with a key 'key1' with value 'this works'
expect(JSON.parse(contentString).key1).toEqual('this works');