Skip to content
This repository was archived by the owner on Sep 14, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 16 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"aws-sdk": "2.999.0",
"chai": "4.3.4",
"chai-as-promised": "7.1.1",
"dayjs": "^1.11.6",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"eslint-config-standard": "16.0.3",
Expand All @@ -74,7 +75,6 @@
"husky": "7.0.2",
"lint-staged": "11.2.0",
"mocha": "9.1.2",
"moment": "2.29.1",
"nyc": "15.1.0",
"p-map": "4.0.0",
"prettier": "2.4.1",
Expand Down
6 changes: 3 additions & 3 deletions test/controllers/object.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const FormData = require('form-data');
const fs = require('fs');
const http = require('http');
const { find, times } = require('lodash');
const moment = require('moment');
const dayjs = require('dayjs');
const pMap = require('p-map');
const request = require('request-promise-native').defaults({
resolveWithFullResponse: true,
Expand Down Expand Up @@ -1140,7 +1140,7 @@ describe('Operations on Objects', () => {
})
.promise();
expect(copyResult.ETag).to.equal(data.ETag);
expect(moment(copyResult.LastModified).isValid()).to.be.true;
expect(dayjs(copyResult.LastModified).isValid()).to.be.true;
const object = await s3Client
.getObject({
Bucket: 'bucket-b',
Expand Down Expand Up @@ -1205,7 +1205,7 @@ describe('Operations on Objects', () => {
})
.promise();
expect(copyResult.ETag).to.equal(data.ETag);
expect(moment(copyResult.LastModified).isValid()).to.be.true;
expect(dayjs(copyResult.LastModified).isValid()).to.be.true;
});

it('copies an image object into another bucket and update its metadata', async function () {
Expand Down
4 changes: 2 additions & 2 deletions test/controllers/service.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { expect } = require('chai');
const { zip } = require('lodash');
const moment = require('moment');
const dayjs = require('dayjs');

const { createServerAndClient } = require('../helpers');

Expand All @@ -25,7 +25,7 @@ describe('Operations on the Service', () => {
expect(data.Buckets).to.have.lengthOf(6);
for (const [bucket, config] of zip(data.Buckets, buckets)) {
expect(bucket.Name).to.equal(config.name);
expect(moment(bucket.CreationDate).isValid()).to.be.true;
expect(dayjs(bucket.CreationDate).isValid()).to.be.true;
}
});
});
Expand Down
8 changes: 4 additions & 4 deletions test/middleware/vhost.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { expect } = require('chai');
const { zip } = require('lodash');
const moment = require('moment');
const dayjs = require('dayjs');
const os = require('os');
const request = require('request-promise-native').defaults({
resolveWithFullResponse: true,
Expand Down Expand Up @@ -48,7 +48,7 @@ describe('Virtual Host resolution', () => {
expect(parsedBuckets).to.have.lengthOf(buckets.length);
for (const [bucket, config] of zip(parsedBuckets, buckets)) {
expect(bucket.Name).to.equal(config.name);
expect(moment(bucket.CreationDate).isValid()).to.be.true;
expect(dayjs(bucket.CreationDate).isValid()).to.be.true;
}
});

Expand All @@ -67,7 +67,7 @@ describe('Virtual Host resolution', () => {
expect(parsedBuckets).to.have.lengthOf(buckets.length);
for (const [bucket, config] of zip(parsedBuckets, buckets)) {
expect(bucket.Name).to.equal(config.name);
expect(moment(bucket.CreationDate).isValid()).to.be.true;
expect(dayjs(bucket.CreationDate).isValid()).to.be.true;
}
});

Expand All @@ -85,7 +85,7 @@ describe('Virtual Host resolution', () => {
expect(parsedBuckets).to.have.lengthOf(buckets.length);
for (const [bucket, config] of zip(parsedBuckets, buckets)) {
expect(bucket.Name).to.equal(config.name);
expect(moment(bucket.CreationDate).isValid()).to.be.true;
expect(dayjs(bucket.CreationDate).isValid()).to.be.true;
}
});

Expand Down