Skip to content

Commit

Permalink
test: fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Nov 2, 2021
1 parent 19f51dc commit 768d15b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ export interface IStore extends Iterable<IPublisher> {
delete(name: string): Promise<void>;
}

class FileStore implements IStore {
export class FileStore implements IStore {
private static readonly DefaultPath = path.join(home(), '.vsce');

static async open(path: string = FileStore.DefaultPath): Promise<FileStore> {
try {
const rawStore = await readFile(FileStore.DefaultPath, 'utf8');
const rawStore = await readFile(path, 'utf8');
return new FileStore(path, JSON.parse(rawStore).publishers);
} catch (err) {
if (err.code === 'ENOENT') {
Expand Down

0 comments on commit 768d15b

Please sign in to comment.