@haibun/storage-fs 1.8.2 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/storage-fs.test.js
CHANGED
|
@@ -6,17 +6,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const defs_1 = require("@haibun/core/build/lib/defs");
|
|
7
7
|
const lib_1 = require("@haibun/core/build/lib/test/lib");
|
|
8
8
|
const storage_fs_1 = __importDefault(require("./storage-fs"));
|
|
9
|
-
describe('
|
|
10
|
-
it('gets capture
|
|
9
|
+
describe('getCaptureLocation', () => {
|
|
10
|
+
it('gets capture location', async () => {
|
|
11
11
|
const storageFS = new storage_fs_1.default();
|
|
12
12
|
const { world } = (0, lib_1.getDefaultWorld)(0);
|
|
13
|
-
const dir = await storageFS.
|
|
13
|
+
const dir = await storageFS.getCaptureLocation({ ...world, mediaType: "json" /* json */ }, 'test');
|
|
14
14
|
expect(dir).toEqual(`./${defs_1.CAPTURE}/default/loop-0/seq-0/featn-0/mem-0/test`);
|
|
15
15
|
});
|
|
16
|
-
it('gets options capture
|
|
16
|
+
it('gets options capture location', async () => {
|
|
17
17
|
const storageFS = new storage_fs_1.default();
|
|
18
18
|
const world = (0, lib_1.getTestWorldWithOptions)({ options: { DEST: 'foo' }, extraOptions: {} });
|
|
19
|
-
const dir = await storageFS.
|
|
19
|
+
const dir = await storageFS.getCaptureLocation({ ...world, mediaType: "json" /* json */ }, 'test');
|
|
20
|
+
expect(dir).toEqual(`./${defs_1.CAPTURE}/foo/loop-0/seq-0/featn-0/mem-0/test`);
|
|
21
|
+
});
|
|
22
|
+
it('gets relative capture location', async () => {
|
|
23
|
+
const storageFS = new storage_fs_1.default();
|
|
24
|
+
const world = (0, lib_1.getTestWorldWithOptions)({ options: { DEST: 'foo' }, extraOptions: {} });
|
|
25
|
+
const dir = await storageFS.getCaptureLocation({ ...world, mediaType: "json" /* json */ }, 'test');
|
|
20
26
|
expect(dir).toEqual(`./${defs_1.CAPTURE}/foo/loop-0/seq-0/featn-0/mem-0/test`);
|
|
21
27
|
});
|
|
22
28
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-fs.test.js","sourceRoot":"","sources":["../src/storage-fs.test.ts"],"names":[],"mappings":";;;;;AAAA,sDAAsD;AACtD,yDAA2F;AAE3F,8DAAqC;AAErC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"storage-fs.test.js","sourceRoot":"","sources":["../src/storage-fs.test.ts"],"names":[],"mappings":";;;;;AAAA,sDAAsD;AACtD,yDAA2F;AAE3F,8DAAqC;AAErC,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAChC,EAAE,CAAC,uBAAuB,EAAE,KAAK,IAAI,EAAE;QACnC,MAAM,SAAS,GAAG,IAAI,oBAAS,EAAE,CAAC;QAClC,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,qBAAe,EAAC,CAAC,CAAC,CAAC;QACrC,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC,kBAAkB,CAAC,EAAE,GAAG,KAAK,EAAE,SAAS,mBAAkB,EAAE,EAAE,MAAM,CAAC,CAAC;QAClG,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,cAAO,0CAA0C,CAAC,CAAC;IAChF,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,+BAA+B,EAAE,KAAK,IAAI,EAAE;QAC3C,MAAM,SAAS,GAAG,IAAI,oBAAS,EAAE,CAAC;QAClC,MAAM,KAAK,GAAG,IAAA,6BAAuB,EAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,CAAC;QACtF,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC,kBAAkB,CAAC,EAAE,GAAG,KAAK,EAAE,SAAS,mBAAkB,EAAE,EAAE,MAAM,CAAC,CAAC;QAClG,MAAM,CAAC,GAAG,CAAC,C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