aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@kwsites/file-exists/dist/test/__mocks__
diff options
context:
space:
mode:
authorScoots Dash <contact@minteck.org>2022-04-23 14:12:30 +0000
committerScoots Dash <contact@minteck.org>2022-04-23 14:12:30 +0000
commita927497b43cbe1438f3d7478932f3f7d03ea347c (patch)
tree0a3c88978b4294fb30afad58daa86c46fbedc2f6 /node_modules/@kwsites/file-exists/dist/test/__mocks__
parentba5fa694351774f2684c1aefdc215da5c6f39ba6 (diff)
parentf0db5bbbcd623812a391862d217519afafe197c6 (diff)
downloadtwilight-a927497b43cbe1438f3d7478932f3f7d03ea347c.tar.gz
twilight-a927497b43cbe1438f3d7478932f3f7d03ea347c.tar.bz2
twilight-a927497b43cbe1438f3d7478932f3f7d03ea347c.zip
Merge branch 'deprecation' into 'trunk'HEADtrunk
Disable the Twilight Package Manager See merge request minteck/twilight!1
Diffstat (limited to 'node_modules/@kwsites/file-exists/dist/test/__mocks__')
-rw-r--r--node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.d.ts7
-rw-r--r--node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.js26
-rw-r--r--node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.js.map1
3 files changed, 0 insertions, 34 deletions
diff --git a/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.d.ts b/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.d.ts
deleted file mode 100644
index ab80d33..0000000
--- a/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-export declare function statSync(...args: any[]): any;
-export declare function addStatSyncMock(fn: any): void;
-export declare function assertMocksUsed(): void;
-declare const mockFs: {
- statSync: typeof statSync;
-};
-export default mockFs;
diff --git a/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.js b/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.js
deleted file mode 100644
index cd46c71..0000000
--- a/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.js
+++ /dev/null
@@ -1,26 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-let statSyncMocks = [];
-function statSync(...args) {
- const mock = statSyncMocks.shift();
- if (typeof mock !== 'function') {
- throw new Error(`fs.statSync called without configuring a mock`);
- }
- return mock(...args);
-}
-exports.statSync = statSync;
-function addStatSyncMock(fn) {
- statSyncMocks.push(fn);
-}
-exports.addStatSyncMock = addStatSyncMock;
-function assertMocksUsed() {
- if (statSyncMocks.length) {
- throw new Error(`fs.afterEach: statSync has ${statSyncMocks.length} unused mocks`);
- }
-}
-exports.assertMocksUsed = assertMocksUsed;
-const mockFs = {
- statSync,
-};
-exports.default = mockFs;
-//# sourceMappingURL=fs.js.map \ No newline at end of file
diff --git a/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.js.map b/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.js.map
deleted file mode 100644
index e2a3d16..0000000
--- a/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"fs.js","sourceRoot":"","sources":["../../../test/__mocks__/fs.ts"],"names":[],"mappings":";;AACA,IAAI,aAAa,GAAU,EAAE,CAAC;AAE9B,SAAgB,QAAQ,CAAC,GAAG,IAAW;IACpC,MAAO,IAAI,GAAG,aAAa,CAAC,KAAK,EAAE,CAAC;IACpC,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE;QAC7B,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;KACnE;IAED,OAAO,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;AACxB,CAAC;AAPD,4BAOC;AAED,SAAgB,eAAe,CAAC,EAAO;IACpC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1B,CAAC;AAFD,0CAEC;AAED,SAAgB,eAAe;IAC5B,IAAI,aAAa,CAAC,MAAM,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,8BAA8B,aAAa,CAAC,MAAM,eAAe,CAAC,CAAC;KACrF;AACJ,CAAC;AAJD,0CAIC;AAED,MAAM,MAAM,GAAG;IACZ,QAAQ;CACV,CAAA;AAED,kBAAe,MAAM,CAAC"} \ No newline at end of file