fix(build): rename npmextra config to .smartconfig and update tooling dependencies
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { expect, tap } from '@git.zone/tstest/tapbundle';
|
||||
import { jestExpect } from '@push.rocks/tapbundle/node';
|
||||
import { Qenv } from '@push.rocks/qenv';
|
||||
|
||||
import * as smartbucket from '../ts/index.js';
|
||||
@@ -68,12 +67,10 @@ tap.test('should put a file into the trash', async () => {
|
||||
expect(trashedMetaFile).toBeDefined();
|
||||
expect(trashedMetaFile).toBeInstanceOf(smartbucket.File);
|
||||
|
||||
jestExpect(await trashedMetaFile!.getJsonData()).toEqual({
|
||||
custom_recycle: {
|
||||
deletedAt: jestExpect.any(Number),
|
||||
originalPath: "trashtest/trashme.txt",
|
||||
},
|
||||
});
|
||||
const metaJsonData = await trashedMetaFile!.getJsonData() as any;
|
||||
expect(metaJsonData).toHaveProperty('custom_recycle');
|
||||
expect(metaJsonData.custom_recycle).toHaveProperty('originalPath', 'trashtest/trashme.txt');
|
||||
expect(metaJsonData.custom_recycle.deletedAt).toBeTypeofNumber();
|
||||
});
|
||||
|
||||
tap.test('should restore a file from trash', async () => {
|
||||
|
||||
Reference in New Issue
Block a user