Addressed linter warnings

Signed-off-by: Robert Bunning <rbunning@webstaurantstore.com>
This commit is contained in:
Robert Bunning
2022-12-21 11:04:29 -05:00
parent 502aea62e1
commit 4b08032f84
2 changed files with 8 additions and 8 deletions
@@ -55,10 +55,10 @@ const testFileTwoContent = 'testFileTwo content';
const genericFileContent = 'file content';
const mockUrlReader: UrlReader = {
read: function (): Promise<Buffer> {
read() {
throw new Error('read not implemented.');
},
readUrl: function (url: string): Promise<ReadUrlResponse> {
readUrl(url: string) {
switch (url) {
case 'testFileOne':
return makeFileContent(testFileOneContent);
@@ -68,13 +68,13 @@ const mockUrlReader: UrlReader = {
return makeFileContent(genericFileContent);
}
},
readTree: function (): Promise<ReadTreeResponse> {
readTree() {
const result: ReadTreeResponse = {
files: async () => testingUrlFakeFileTree,
archive: function (): Promise<NodeJS.ReadableStream> {
archive() {
throw new Error('Function not implemented.');
},
dir: function (): Promise<string> {
dir() {
throw new Error('Function not implemented.');
},
etag: '',
@@ -83,7 +83,7 @@ const mockUrlReader: UrlReader = {
const resultPromise = async () => result;
return resultPromise();
},
search: function (): Promise<SearchResponse> {
search() {
throw new Error('search not implemented.');
},
};