Skip to content

Commit

Permalink
remove duplicate space and use node:fs/promises in fsInterface test
Browse files Browse the repository at this point in the history
  • Loading branch information
flovogt committed Oct 24, 2022
1 parent 3d43fd3 commit aa1afa9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/AbstractReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class AbstractReader {
* @public
* @param {@ui5/fs/readers/Filter~callback} callback
* Filter function. Will be called for every resource passed through this reader.
* @returns {Promise<@ui5/fs/readers/Filter>} Promise resolving with filter instance
* @returns {Promise<@ui5/fs/readers/Filter>} Promise resolving with filter instance
*/
async filter(callback) {
const {default: Filter} = await import("./readers/Filter.js");
Expand Down
2 changes: 1 addition & 1 deletion lib/resourceFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function createAdapter({fsBasePath, virBasePath, project, excludes}) {
* @param {string} parameters.fsBasePath File system base path
* @param {object} [parameters.project] Experimental, internal parameter. Do not use
* @param {string[]} [parameters.excludes] List of glob patterns to exclude
* @param {string} [parameters.name] Name for the reader collection
* @param {string} [parameters.name] Name for the reader collection
* @returns {@ui5/fs/ReaderCollection} Reader collection wrapping an adapter
*/
export function createReader({fsBasePath, virBasePath, project, excludes = [], name}) {
Expand Down
6 changes: 3 additions & 3 deletions test/lib/fsInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import {promisify} from "node:util";
import {Buffer} from "node:buffer";
import path from "node:path";
import {fileURLToPath} from "node:url";
import fs from "node:fs";
const stat = promisify(fs.stat);
const readFile = promisify(fs.readFile);
import fsSync from "node:fs";
const stat = promisify(fsSync.stat);
import {readFile} from "node:fs/promises";
import fsInterface from "../../lib/fsInterface.js";
import MemAdapter from "../../lib/adapters/Memory.js";
import FsAdapter from "../../lib/adapters/FileSystem.js";
Expand Down

0 comments on commit aa1afa9

Please sign in to comment.