Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
fix: remove Date.now mock
Browse files Browse the repository at this point in the history
  • Loading branch information
arantespp committed Feb 23, 2022
1 parent acc4c14 commit 9661fae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 1 addition & 4 deletions packages/cli/src/deploy/cloudFormation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,7 @@ const emptyStackBuckets = async ({ stackName }: { stackName: string }) => {
const buckets: string[] = [];

await (async function getBuckets({ nextToken }: { nextToken?: string }) {
const {
NextToken,
StackResourceSummaries,
} = await cloudFormationV2()
const { NextToken, StackResourceSummaries } = await cloudFormationV2()
.listStackResources({ StackName: stackName, NextToken: nextToken })
.promise();

Expand Down
4 changes: 0 additions & 4 deletions packages/cli/src/deploy/staticApp/staticApp.template.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ import * as faker from 'faker';

const region = faker.random.word();

/**
* Mock to snapshots don't fail.
*/
Date.now = jest.fn(() => 1487076708000);
const PACKAGE_VERSION = '10.40.23';

jest.mock('../../utils', () => ({
Expand Down

0 comments on commit 9661fae

Please sign in to comment.