Skip to content

Commit

Permalink
Renamed format:fix to format
Browse files Browse the repository at this point in the history
Formatting
  • Loading branch information
james-pre committed Sep 10, 2023
1 parent c024e06 commit a3a97ea
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"prepublishOnly": "npm run dist",
"docs": "typedoc --mode modules --out doc --excludePrivate --readme src/DOCS.md --name BrowserFS --module umd --ignoreCompilerErrors src",
"format:check": "prettier --check src test",
"format:fix": "prettier --write src test",
"format": "npm run format:check && npm run format:fix"
"format": "prettier --write src test"
}
}
2 changes: 0 additions & 2 deletions test/tests/fs/all/read.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ describe.each(backends)('%s read', (name, options) => {
expect(bytesRead).toEqual(expected.length);
});
}

});

describe.each(backends)('%s read binary', (name, options) => {
Expand Down Expand Up @@ -83,4 +82,3 @@ describe.each(backends)('%s read buffer', (name, options) => {
}
});
});

4 changes: 1 addition & 3 deletions test/tests/fs/all/readFile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ describe.each(backends)('%s File Reading', (name, options) => {
});
});


describe.each(backends)('%s Read and Unlink File Test', (name, options) => {
const configured = configure({ fs: name, options });
const dirName = path.resolve(fixturesDir, 'test-readfile-unlink');
Expand Down Expand Up @@ -98,5 +97,4 @@ describe.each(backends)('%s Read File Test', (name, options) => {
expect(data).toBe('');
});
}

});
});
8 changes: 4 additions & 4 deletions test/tests/fs/all/rename.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe.each(backends)('%s File and Directory Rename Tests', (name, options) =>

it('Directory Rename', async () => {
await configured;
if(fs.getRootFS().isReadOnly()){
if (fs.getRootFS().isReadOnly()) {
return;
}
const oldDir = '/rename_test';
Expand Down Expand Up @@ -74,7 +74,7 @@ describe.each(backends)('%s File and Directory Rename Tests', (name, options) =>

it('File Rename', async () => {
await configured;
if(fs.getRootFS().isReadOnly()){
if (fs.getRootFS().isReadOnly()) {
return;
}
const fileDir = '/rename_file_test';
Expand All @@ -98,7 +98,7 @@ describe.each(backends)('%s File and Directory Rename Tests', (name, options) =>

it('File to Directory and Directory to File Rename', async () => {
await configured;
if(fs.getRootFS().isReadOnly()){
if (fs.getRootFS().isReadOnly()) {
return;
}
const dir = '/rename_filedir_test';
Expand Down Expand Up @@ -127,7 +127,7 @@ describe.each(backends)('%s File and Directory Rename Tests', (name, options) =>

it('Cannot Rename a Directory Inside Itself', async () => {
await configured;
if(fs.getRootFS().isReadOnly()){
if (fs.getRootFS().isReadOnly()) {
return;
}
const renDir1 = '/renamedir_1';
Expand Down

0 comments on commit a3a97ea

Please sign in to comment.