Merge pull request #271 from sachaaaaa/fix_node_tests

Fix node tests
pull/274/head
Mikunj Varsani 6 years ago committed by GitHub
commit 296eb6fd72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,10 +45,7 @@ describe('Attachment', () => {
data: stringToArrayBuffer('foo'),
contentType: MIME.VIDEO_QUICKTIME,
};
// Unix timestamp of start of year 2000 to fix odd sudo timezone bug
const timestamp = new Date(
946684800000 - moment().utcOffset() * 60 * 1000
);
const timestamp = moment('2000-01-01').toDate();
const actual = Attachment.getSuggestedFilename({
attachment,
timestamp,

Loading…
Cancel
Save